forked from forem/forem
-
Notifications
You must be signed in to change notification settings - Fork 0
/
_liquid.html.erb
36 lines (36 loc) · 1.04 KB
/
_liquid.html.erb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<% 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 %>