FEATURE: include excerpt in HTML view for pinned topics

This commit is contained in:
Sam 2018-08-08 11:15:49 +10:00
parent 4e6e4a83df
commit 3f6ad65aec
1 changed files with 6 additions and 0 deletions

View File

@ -52,6 +52,12 @@
<span class='category'>[<a href='<%= t.category.url %>'><%= t.category.name %></a>]</span>
<% end %>
<span class='posts' title='<%= t 'posts' %>'>(<%= t.posts_count %>)</span>
<% if t.pinned_until && t.pinned_until > Time.zone.now && (t.pinned_globally || @list.category) %>
<p class='excerpt'>
<%= t.excerpt.html_safe %>
</p>
<% end %>
</div>
<% end %>
</div>