<%= table_for @favorite_groups, width: "100%" do |t| %>
- <% t.column nil, {width: "5%"} %>
<% t.column "Name", {width: "60%"} do |favgroup| %>
<%= link_to favgroup.pretty_name, favorite_group_path(favgroup) %>
<% if favgroup.post_count > CurrentUser.user.per_page %>
diff --git a/app/views/forum_post_votes/index.html.erb b/app/views/forum_post_votes/index.html.erb
index 28693d79a..942d8714a 100644
--- a/app/views/forum_post_votes/index.html.erb
+++ b/app/views/forum_post_votes/index.html.erb
@@ -15,7 +15,7 @@
<%= link_to "Forum ##{forum_post_vote.forum_post_id}", forum_post_vote.forum_post %>
<%= link_to "»", forum_post_votes_path(search: { forum_post_id: forum_post_vote.forum_post_id }) %>
<% end %>
- <% t.column "Forum Topic", nil, {class: "col-expand"} do |forum_post_vote| %>
+ <% t.column "Forum Topic", td: {class: "col-expand"} do |forum_post_vote| %>
<%= link_to forum_post_vote.forum_post.topic.title, forum_post_vote.forum_post.topic %>
<% end %>
<% t.column "Score" do |forum_post_vote| %>
@@ -31,7 +31,7 @@
<%= link_to "»", forum_post_votes_path(search: { creator_name: forum_post_vote.creator.name }) %>
<% end %>
- <% t.column "" do |forum_post_vote| %>
+ <% t.column do |forum_post_vote| %>
<% if forum_post_vote.creator == CurrentUser.user %>
<%= link_to "unvote", forum_post_vote_path(forum_post_vote, format: "js"), remote: true, method: :delete %>
<% end %>
diff --git a/app/views/forum_posts/index.html.erb b/app/views/forum_posts/index.html.erb
index a31130969..d0cc54fd4 100644
--- a/app/views/forum_posts/index.html.erb
+++ b/app/views/forum_posts/index.html.erb
@@ -2,10 +2,10 @@
<%= table_for @forum_posts, width: "100%" do |t| %>
- <% t.column "Topic", nil, {class: "forum-post-topic-title"} do |forum_post| %>
+ <% t.column "Topic", td: {class: "forum-post-topic-title"} do |forum_post| %>
<%= link_to forum_post.topic.title, forum_topic_path(forum_post.topic) %>
<% end %>
- <% t.column "Excerpt", nil, {class: "forum-post-excerpt"} do |forum_post| %>
+ <% t.column "Excerpt", td: {class: "forum-post-excerpt"} do |forum_post| %>
<%= link_to truncate(forum_post.body, :length => 50), forum_post_path(forum_post) %>
<% end %>
<% t.column "Creator" do |forum_post| %>
diff --git a/app/views/forum_topics/_listing.html.erb b/app/views/forum_topics/_listing.html.erb
index 298e24a39..2a6075ee3 100644
--- a/app/views/forum_topics/_listing.html.erb
+++ b/app/views/forum_topics/_listing.html.erb
@@ -25,10 +25,10 @@
<% t.column "Creator" do |topic| %>
<%= link_to_user topic.creator %>
<% end %>
- <% t.column "Updated by", {class: "updater"} do |topic| %>
+ <% t.column "Updated by", th: { class: "updater" }, td: { class: "updater" } do |topic| %>
<%= link_to_user topic.updater %>
<% end %>
- <% t.column "Updated at", {class: "updated-at"} do |topic| %>
+ <% t.column "Updated at", th: { class: "updated-at" }, td: { class: "updated-at" } do |topic| %>
<%= compact_time topic.updated_at %>
<% end %>
<% end %>
diff --git a/app/views/ip_addresses/_index.html.erb b/app/views/ip_addresses/_index.html.erb
index 4f3a947f3..3c4b2268d 100644
--- a/app/views/ip_addresses/_index.html.erb
+++ b/app/views/ip_addresses/_index.html.erb
@@ -16,7 +16,7 @@
<% t.column "Date" do |ip| %>
<%= time_ago_in_words_tagged ip.created_at %>
<% end %>
- <% t.column "" do |ip| %>
+ <% t.column do |ip| %>
<%= link_to "IP info", "https://ipinfo.io/#{ip.ip_addr}" %>
<% end %>
<% end %>
diff --git a/app/views/ip_bans/index.html.erb b/app/views/ip_bans/index.html.erb
index f3a8e9eb0..1cfc759c4 100644
--- a/app/views/ip_bans/index.html.erb
+++ b/app/views/ip_bans/index.html.erb
@@ -10,7 +10,7 @@
<%= link_to_user ip_ban.creator %>
<% end %>
<% t.column :reason %>
- <% t.column "" do |ip_ban| %>
+ <% t.column do |ip_ban| %>
<%= link_to "Unban", ip_ban_path(ip_ban), :remote => true, :method => :delete, :data => {:confirm => "Do your really want to unban #{ip_ban.ip_addr}?"} %>
<% end %>
<% end %>
diff --git a/app/views/mod_actions/index.html.erb b/app/views/mod_actions/index.html.erb
index 97e17a7aa..50b7825bc 100644
--- a/app/views/mod_actions/index.html.erb
+++ b/app/views/mod_actions/index.html.erb
@@ -8,7 +8,7 @@
<% t.column "Category" do |mod_action| %>
<%= link_to mod_action.category.humanize, mod_actions_path(search: { category: mod_action.category_id }) %>
<% end %>
- <% t.column "Message", nil, {class: "col-expand"} do |mod_action| %>
+ <% t.column "Message", td: {class: "col-expand"} do |mod_action| %>
<%= format_text(mod_action.description) %>
<% end %>
<% t.column "Created" do |mod_action| %>
diff --git a/app/views/moderator/post/disapprovals/index.html.erb b/app/views/moderator/post/disapprovals/index.html.erb
index 85c94a97c..9f96a96aa 100644
--- a/app/views/moderator/post/disapprovals/index.html.erb
+++ b/app/views/moderator/post/disapprovals/index.html.erb
@@ -18,7 +18,7 @@
<%= link_to "post ##{post_disapproval.post_id}", post_path(post_disapproval.post_id) %>
<%= link_to "»", moderator_post_disapprovals_path(search: params[:search].merge(post_id: post_disapproval.post_id)) %>
<% end %>
- <% t.column "Message", nil, {class: "col-expand"} do |post_disapproval| %>
+ <% t.column "Message", td: {class: "col-expand"} do |post_disapproval| %>
<%= format_text(post_disapproval.message) %>
diff --git a/app/views/news_updates/index.html.erb b/app/views/news_updates/index.html.erb
index 2245bc6b0..e9616fa69 100644
--- a/app/views/news_updates/index.html.erb
+++ b/app/views/news_updates/index.html.erb
@@ -7,7 +7,7 @@
<%= link_to_user news_update.creator %>
<% end %>
<% t.column :message %>
- <% t.column "" do |news_update| %>
+ <% t.column do |news_update| %>
<%= link_to "Edit", edit_news_update_path(news_update) %>
| <%= link_to "Delete", news_update_path(news_update), :method => :delete %>
<% end %>
diff --git a/app/views/note_versions/_listing.html.erb b/app/views/note_versions/_listing.html.erb
index 3dcc10f2b..132c4f1cf 100644
--- a/app/views/note_versions/_listing.html.erb
+++ b/app/views/note_versions/_listing.html.erb
@@ -14,7 +14,7 @@
<%= link_to "»", note_versions_path(search: {note_id: note_version.note_id}) %>
<% end %>
<% end %>
- <% t.column "Body", nil, {class: "col-expand"} do |note_version| %>
+ <% t.column "Body", td: {class: "col-expand"} do |note_version| %>
<%= h(note_version.body) %>
<% unless note_version.is_active? %>
(deleted)
diff --git a/app/views/notes/index.html.erb b/app/views/notes/index.html.erb
index 49f22112f..f0a548f29 100644
--- a/app/views/notes/index.html.erb
+++ b/app/views/notes/index.html.erb
@@ -10,7 +10,7 @@
<%= link_to "#{note.id}.#{note.version}", post_path(note.post_id, anchor: "note-#{note.id}") %>
<%= link_to "»", note_versions_path(search: { note_id: note.id }) %>
<% end %>
- <% t.column "Body", class: "col-expand" do |note| %>
+ <% t.column "Body", td: { class: "col-expand" } do |note| %>
<%= note.body %>
<% unless note.is_active? %>
(deleted)
diff --git a/app/views/pool_versions/_listing.html.erb b/app/views/pool_versions/_listing.html.erb
index 5f5a7e60d..389db36de 100644
--- a/app/views/pool_versions/_listing.html.erb
+++ b/app/views/pool_versions/_listing.html.erb
@@ -5,7 +5,7 @@
<%= link_to pool_version.pretty_name, pool_path(pool_version.pool_id), class: "pool-category-#{pool_version.pool.category}" %>
<%= link_to "»", pool_versions_path(search: { pool_id: pool_version.pool_id }), class: "pool-category-#{pool_version.pool.category}" %>
<% end %>
- <% t.column "Changes", class: "col-expand" do |pool_version| %>
+ <% t.column "Changes", td: { class: "col-expand" } do |pool_version| %>
<%= render "pool_versions/diff", diff: pool_version.build_diff %>
<% end %>
<% t.column "Post Count" do |pool_version| %>
@@ -29,7 +29,7 @@
<%= compact_time pool_version.updated_at %>
<% end %>
<% if pool_versions_listing_type == :revert %>
- <% t.column "" do |pool_version| %>
+ <% t.column do |pool_version| %>
<%= link_to "Revert to", revert_pool_path(pool_version.pool_id, :version_id => pool_version.id), :method => :put, :remote => true %>
<% end %>
<% end %>
diff --git a/app/views/pools/index.html.erb b/app/views/pools/index.html.erb
index c5955a8df..48e8817da 100644
--- a/app/views/pools/index.html.erb
+++ b/app/views/pools/index.html.erb
@@ -3,7 +3,6 @@
<%= render "search", :path => pools_path %>
<%= table_for @pools, width: "100%" do |t| %>
- <% t.column nil, {width: "5%"} %>
<% t.column "Name", {width: "60%"} do |pool| %>
<%= link_to pool.pretty_name, pool_path(pool) %>
<% if pool.is_deleted? %>
diff --git a/app/views/post_events/index.html.erb b/app/views/post_events/index.html.erb
index 57effc0af..5f27ee763 100644
--- a/app/views/post_events/index.html.erb
+++ b/app/views/post_events/index.html.erb
@@ -3,7 +3,7 @@
Post Events
<%= table_for @events, class: "striped autofit", width: "100%" do |t| %>
- <% t.column :type_name, nil, { name: "Type" } %>
+ <% t.column :type_name, name: "Type" %>
<% t.column "User" do |event| %>
<% if event.is_creator_visible? %>
<%= link_to_user event.creator %>
@@ -12,12 +12,12 @@
<% end %>
<%= time_ago_in_words_tagged event.created_at %>
<% end %>
- <% t.column "Description", {}, { class: "col-expand" } do |event| %>
+ <% t.column "Description", td: { class: "col-expand" } do |event| %>
<%= format_text event.reason %>
<% end %>
- <% t.column :is_resolved, {}, name: "Resolved" %>
+ <% t.column :is_resolved, name: "Resolved" %>
<% end %>