discourse/app/views/categories/index.html.erb

15 lines
552 B
Text
Raw Normal View History

<% @list.categories.each do |c| %>
<div class="category">
<h2><a href="<%= path ("/c/" << (c.slug.blank? ? c.id : c.slug)) %>"><%= c.name %></a></h2>
<div class="topic-list">
<%- 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 %>
</div>
</div>
2014-10-30 14:26:35 -04:00
<% end %>
<% content_for :title do %><%= I18n.t('js.filters.categories.title') %><% end %>