docbrown/app/views/listings/_liquid.html.erb
yheuhtozr 824397b93f
views/listings etc i18n (#15040)
* views/listings etc i18n

* helper labels

* remove ja.yml

* Update edit.html.erb

* Apply suggestions from code review

Co-authored-by: Michael Kohl <citizen428@forem.com>

* Update delete_confirm.html.erb

* Update edit.html.erb

* Update fr.yml

* Update edit.html.erb

Co-authored-by: Michael Kohl <citizen428@forem.com>
2021-10-27 16:37:29 +01:00

36 lines
1 KiB
Text

<% if listing.bumped_at < (Time.zone.today - 30) %>
<div class="ltag__listing">
<div class="ltag__listing-content">
<h3>
<a href="/listings">
<%= t("views.listings.expired") %>
</a>
</h3>
</div>
</div>
<% else %>
<div class="ltag__listing">
<div class="ltag__listing-content">
<h3>
<a href="/listings/<%= listing.category %>/<%= listing.slug %>">
<%= listing.title %>
</a>
</h3>
<div class="ltag__listing-body">
<a href="/listings/<%= listing.category %>/<%= listing.slug %>">
<%= listing.processed_html.html_safe %>
</a>
</div>
<div class="ltag__listing-tags">
<% listing.tag_list.each do |tag| %>
<span class='ltag__listing-tag'><a href='/listings?t=<%= tag %>'><%= tag %></a></span>
<% end %>
</div>
<div class="ltag__listing-author-info">
<a href="/listings/<%= listing.category %>"><%= listing.category %></a>
<a href="/<%= listing.author.username %>"><%= listing.author.name %></a>
</div>
</div>
</div>
<% end %>