mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
UX: convert embedded topic list HTML structure from table to div
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
<%- if @list && @list.topics.present? %>
|
||||
<table class='topics-list' data-embed-state='loaded' <%- if @embed_id %>data-embed-id="<%= @embed_id %>"<%- end %>>
|
||||
<div class='topics-list' data-embed-state='loaded' <%- if @embed_id %>data-embed-id="<%= @embed_id %>"<%- end %>>
|
||||
<%- @list.topics.each do |t| %>
|
||||
<tr class='topic-list-item'>
|
||||
<td class='main-link'>
|
||||
<div class='topic-list-item'>
|
||||
<div class='main-link'>
|
||||
<a target="_parent" href="<%= t.url %>" class="title raw-link raw-topic-link" data-topic-id="<%= t.id %>"><%= t.title %></a>
|
||||
</td>
|
||||
</div>
|
||||
</div>
|
||||
<%- end %>
|
||||
</table>
|
||||
</div>
|
||||
<%- end %>
|
||||
|
||||
Reference in New Issue
Block a user