mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 03:16:41 +08:00
FEATURE: include excerpt in HTML view for pinned topics
This commit is contained in:
parent
4e6e4a83df
commit
3f6ad65aec
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue
Block a user