From 3f6ad65aec3db07210423fa570d5b4c6af12d895 Mon Sep 17 00:00:00 2001 From: Sam Date: Wed, 8 Aug 2018 11:15:49 +1000 Subject: [PATCH] FEATURE: include excerpt in HTML view for pinned topics --- app/views/list/list.erb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/views/list/list.erb b/app/views/list/list.erb index cb2dc7d37ea..14d69654979 100644 --- a/app/views/list/list.erb +++ b/app/views/list/list.erb @@ -52,6 +52,12 @@ [<%= t.category.name %>] <% end %> '>(<%= t.posts_count %>) + + <% if t.pinned_until && t.pinned_until > Time.zone.now && (t.pinned_globally || @list.category) %> +

+ <%= t.excerpt.html_safe %> +

+ <% end %> <% end %>