2019-04-04 09:57:18 -04:00
|
|
|
<div itemscope itemtype='http://schema.org/ItemList'>
|
2020-05-05 09:56:04 -04:00
|
|
|
<meta itemprop='itemListOrder' content='http://schema.org/ItemListOrderDescending'>
|
2019-04-04 09:57:18 -04:00
|
|
|
<table class='category-list'>
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th class='category'><%= t 'js.categories.category' %></th>
|
|
|
|
<th class='topics'><%= t 'js.topic.list' %></th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<% @category_list.categories.each_with_index do |c, index| %>
|
|
|
|
<tr>
|
|
|
|
<td class='category' style='border-color: #<%= c.color %>;'>
|
|
|
|
<div itemprop='itemListElement' itemscope itemtype='http://schema.org/ListItem'>
|
|
|
|
<meta itemprop='position' content='<%= index %>'>
|
|
|
|
<meta itemprop='url' content='<%= c.url %>'>
|
|
|
|
<h3>
|
|
|
|
<a href='<%= c.url %>'>
|
|
|
|
<span itemprop='name'><%= c.name %></span>
|
|
|
|
</a>
|
|
|
|
</h3>
|
|
|
|
<div itemprop='description'><%= c.description&.html_safe %></div>
|
2023-04-25 10:51:45 -04:00
|
|
|
<% if c.subcategory_list.present? %>
|
|
|
|
<div class='subcategories'>
|
|
|
|
<% c.subcategory_list.each_with_index do |sc, index| %>
|
|
|
|
<a href='<%= sc.url %>'><%= sc.name %></a>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
2019-04-04 09:57:18 -04:00
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
<td class='topics'>
|
|
|
|
<div title='<%= c.topic_count %> <%= t 'js.topic.list' %>'><%= c.topic_count %></div>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<% end %>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2015-02-13 06:34:22 -05:00
|
|
|
</div>
|
2014-10-30 14:26:35 -04:00
|
|
|
|
2015-06-08 12:07:35 -04:00
|
|
|
<% content_for :title do %><%= @title %><% end %>
|
2016-08-19 07:34:43 -04:00
|
|
|
|
|
|
|
<% content_for :head do %>
|
|
|
|
<%= raw crawlable_meta_data(title: SiteSetting.title, description: SiteSetting.site_description) %>
|
|
|
|
<% end %>
|