diff --git a/app/views/list/list.erb b/app/views/list/list.erb index 17d9e09615d..df9267ab952 100644 --- a/app/views/list/list.erb +++ b/app/views/list/list.erb @@ -1,6 +1,10 @@
<% @list.topics.each do |t| %> - <%= t.title %> '>(<%= t.posts_count %>)
+ <%= t.title %> + <% if !@category && t.category %> + [<%= t.category.name %>] + <% end %> + '>(<%= t.posts_count %>)
<% end %>
diff --git a/app/views/topics/show.html.erb b/app/views/topics/show.html.erb index d18069c5b4f..30020d80377 100644 --- a/app/views/topics/show.html.erb +++ b/app/views/topics/show.html.erb @@ -1,6 +1,9 @@

<%= render_topic_title(@topic_view.topic) %>

+<% if c = @topic_view.topic.category %> + <%= c.name %> +<% end %>
<% @topic_view.posts.each do |post| %>