Files
danbooru/app/views/news_updates/index.html.erb
BrokenEagle 3ab2c4c3ea Use optional parameter to set column class
- Fixes the extremely long class name on the post versions view
- Can now use one value instead of having to set th and td
- Added missing column classes on all tables
2020-01-13 21:21:13 +00:00

21 lines
605 B
Plaintext

<div id="c-news-updates">
<div id="a-index">
<h1>News Updates</h1>
<%= table_for @news_updates, width: "100%" do |t| %>
<% t.column "Creator" do |news_update| %>
<%= link_to_user news_update.creator %>
<% end %>
<% t.column :message %>
<% t.column column: "control" do |news_update| %>
<%= link_to "Edit", edit_news_update_path(news_update) %>
| <%= link_to "Delete", news_update_path(news_update), :method => :delete %>
<% end %>
<% end %>
<%= numbered_paginator(@news_updates) %>
</div>
</div>
<%= render "secondary_links" %>