Merge pull request #2800 from riking/nojs-subcategory

FIX: Bracked category link in no-JS view
This commit is contained in:
Sam 2014-09-16 14:44:08 +10:00
commit fa014782e8

View File

@ -2,7 +2,7 @@
<% @list.topics.each do |t| %>
<a href="<%= t.relative_url %>"><%= t.title %></a>
<% if !@category && t.category %>
[<a href="/category/<%= t.category.slug.blank? ? t.category.id : t.category.slug %>"><%= t.category.name %></a>]
[<a href="<%= t.category.url%>"><%= t.category.name %></a>]
<% end %>
<span title='<%= t 'posts' %>'>(<%= t.posts_count %>)</span><br/>
<% end %>