* Change models and related files * Update controllers and specs * More renaming * Seek and destroy, I mean search and replace * Round up the stragglers * Ground control to Major Travis... * More fixes * PR feedback * Various fixes * Rename view * Fix list query builder * Unify request specs * Fix some API spec errors * Fix remaining API specs * Make spec conform to API * Fix leftover problems * Fix JS tests * Fix column name in select * Fix API specs * Fix search specs * Paging Mr. Travis
36 lines
1 KiB
Text
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">
|
|
This listing has 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 %>
|