mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 09:26:54 -06:00
f5af4768eb
To setup set DISCOURSE_RELATIVE_URL_ROOT to the folder you wish
15 lines
552 B
Plaintext
15 lines
552 B
Plaintext
<% @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>
|
|
<% end %>
|
|
|
|
<% content_for :title do %><%= I18n.t('js.filters.categories.title') %><% end %>
|