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>
|
<span class='category'>[<a href='<%= t.category.url %>'><%= t.category.name %></a>]</span>
|
||||||
<% end %>
|
<% end %>
|
||||||
<span class='posts' title='<%= t 'posts' %>'>(<%= t.posts_count %>)</span>
|
<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>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue