2013-04-27 01:10:41 +08:00
|
|
|
<% @list.categories.each do |c| %>
|
|
|
|
<div class="category">
|
2015-03-09 08:45:36 +08:00
|
|
|
<h2><a href="<%= path ("/c/" << (c.slug.blank? ? c.id : c.slug)) %>"><%= c.name %></a></h2>
|
2013-04-27 01:10:41 +08:00
|
|
|
<div class="topic-list">
|
2013-05-29 02:54:00 +08:00
|
|
|
<%- if c.displayable_topics.present? %>
|
|
|
|
<% c.displayable_topics.each do |t| %>
|
|
|
|
<a href="<%= t.relative_url %>"><%= t.title %></a> <span title='<%= t 'posts' %>'>(<%= t.posts_count %>)</span><br/>
|
|
|
|
<% end %>
|
|
|
|
<%- end %>
|
2013-04-27 01:10:41 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
2014-10-31 02:26:35 +08:00
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<% content_for :title do %><%= I18n.t('js.filters.categories.title') %><% end %>
|