mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: remove span from inside <tr> and move meta info to a td (#7324)
This commit is contained in:
parent
6f1652bb53
commit
9b288613ae
@ -53,32 +53,30 @@
|
|||||||
<meta itemprop='itemListOrder' content='http://schema.org/ItemListOrderDescending'>
|
<meta itemprop='itemListOrder' content='http://schema.org/ItemListOrderDescending'>
|
||||||
<% @list.topics.each_with_index do |t,i| %>
|
<% @list.topics.each_with_index do |t,i| %>
|
||||||
<tr>
|
<tr>
|
||||||
<span itemprop='itemListElement' itemscope itemtype='http://schema.org/ListItem'>
|
<td itemprop='itemListElement' itemscope itemtype='http://schema.org/ListItem'>
|
||||||
<meta itemprop='position' content='<%= i %>'>
|
<meta itemprop='position' content='<%= i %>'>
|
||||||
<meta itemprop='url' content='<%= t.url %>'>
|
<meta itemprop='url' content='<%= t.url %>'>
|
||||||
<meta itemprop='name' content='<%= t.title %>'>
|
<meta itemprop='name' content='<%= t.title %>'>
|
||||||
<td>
|
<a href='<%= t.url %>' class='title raw-link raw-topic-link'>
|
||||||
<a href='<%= t.url %>' class='title raw-link raw-topic-link'>
|
<span><%= t.title %></span>
|
||||||
<span><%= t.title %></span>
|
</a>
|
||||||
</a>
|
<% if (!@category || @category.has_children?) && t.category %>
|
||||||
<% if (!@category || @category.has_children?) && t.category %>
|
<div>
|
||||||
<div>
|
<a href='<%= t.category.url %>'><span class='category-name'><%= t.category.name %></span></a>
|
||||||
<a href='<%= t.category.url %>'><span class='category-name'><%= t.category.name %></span></a>
|
</div>
|
||||||
</div>
|
<% end %>
|
||||||
<% end %>
|
<% if t.pinned_until && (t.pinned_until > Time.zone.now) && (t.pinned_globally || @list.category) && t.excerpt %>
|
||||||
<% if t.pinned_until && (t.pinned_until > Time.zone.now) && (t.pinned_globally || @list.category) && t.excerpt %>
|
<p class='excerpt'>
|
||||||
<p class='excerpt'>
|
<%= t.excerpt.html_safe %>
|
||||||
<%= t.excerpt.html_safe %>
|
</p>
|
||||||
</p>
|
<% end %>
|
||||||
<% end %>
|
</td>
|
||||||
</td>
|
<td>
|
||||||
<td>
|
<span class='posts' title='<%= t 'posts' %>'><%= t.posts_count %></span>
|
||||||
<span class='posts' title='<%= t 'posts' %>'><%= t.posts_count %></span>
|
</td>
|
||||||
</td>
|
<td>
|
||||||
<td>
|
<%= I18n.l(t.created_at, format: :date_only) %>
|
||||||
<%= I18n.l(t.created_at, format: :date_only) %>
|
</td>
|
||||||
</td>
|
|
||||||
</span>
|
|
||||||
</tr>
|
</tr>
|
||||||
<% end %>
|
<% end %>
|
||||||
</tbody>
|
</tbody>
|
||||||
|
Loading…
Reference in New Issue
Block a user