e_paper/app/views/admin/topics/index.html.erb

20 lines
376 B
Plaintext
Raw Normal View History

2017-07-05 09:16:55 +00:00
<table class="table main-list">
<thead>
<tr class="sort-header">
<% @table_fields.each do |f| %>
<%= thead(f) %>
<% end %>
</tr>
</thead>
<tbody>
<% @topics.each do |topic| %>
<tr>
<td><%= @paper.title %></td>
<td><%= topic.episode %></td>
<td><%= topic.created_at.strftime("%Y-%m-%d") %></td>
</tr>
<% end %>
</tbody>
</table>