FIX: show category links if category has sub-categories in nojs view

This commit is contained in:
Arpit Jalan 2015-09-12 23:58:18 +05:30
parent 1e739e8c96
commit 1e6bf67b5b
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@
<span itemprop='name'><%= t.title %></span>
</a>
<%= page_links(t) %>
<% if !@category && t.category %>
<% if (!@category || @category.has_children?) && t.category %>
<span>[<a href='<%= t.category.url %>'><%= t.category.name %></a>]</span>
<% end %>
<span title='<%= t 'posts' %>'>(<a href="<%=t.last_post_url%>"><%= t.posts_count %></a>)</span>