<%= table_for @note_versions, {class: "striped autofit", width: "100%"} do |t| %>
- <% t.column %>
+ <% t.column column: "empty" %>
<% t.column "Post", {width: "5%"} do |note_version| %>
<%= link_to note_version.post_id, post_path(note_version.post_id) %>
<% if params.dig(:search, :note_id).present? %>
@@ -31,7 +31,7 @@
<%= compact_time note_version.updated_at %>
<% end %>
<% if note_versions_listing_type == :revert %>
- <% t.column "", {width: "7%"} do |note_version| %>
+ <% t.column column: "control", width: "7%" do |note_version| %>
<%= link_to "Revert to", revert_note_path(note_version.note_id, :version_id => note_version.id), :remote => true, :method => :put, :data => {:confirm => "Are you sure you want to revert to this version?"} %>
<% end %>
<% end %>
diff --git a/app/views/pool_versions/_listing.html.erb b/app/views/pool_versions/_listing.html.erb
index 6dfed97a8..1a4ea0ba0 100644
--- a/app/views/pool_versions/_listing.html.erb
+++ b/app/views/pool_versions/_listing.html.erb
@@ -1,7 +1,7 @@
<%= table_for @pool_versions, {class: "striped autofit", width: "100%"} do |t| %>
- <% t.column th: {width: "3%"} do |pool_version| %>
+ <% t.column column: "diff", width: "3%" do |pool_version| %>
<%= link_to_if pool_version.previous.present?, "diff", diff_pool_version_path(pool_version.id) %>
<% end %>
<% t.column "Pool" do |pool_version| %>
@@ -27,7 +27,7 @@
<%= compact_time pool_version.updated_at %>
<% end %>
<% if pool_versions_listing_type == :revert %>
- <% t.column do |pool_version| %>
+ <% t.column column: "control" 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/post_versions/_listing.html.erb b/app/views/post_versions/_listing.html.erb
index 54d45b545..a16600aba 100644
--- a/app/views/post_versions/_listing.html.erb
+++ b/app/views/post_versions/_listing.html.erb
@@ -5,7 +5,7 @@
<%= table_for @post_versions, {id: "post-versions-table", class: "striped autofit"} do |t| %>
<% if CurrentUser.user.is_builder? %>
- <% t.column tag.label(tag.input type: :checkbox, id: "post-version-select-all-checkbox", class: "post-version-select-checkbox"), th: { class: "post-version-select-column" }, td: { class: "post-version-select-column" } do |post_version| %>
+ <% t.column tag.label(tag.input type: :checkbox, id: "post-version-select-all-checkbox", class: "post-version-select-checkbox"), column: "post-version-select" do |post_version| %>
>
<% end %>
<% end %>
diff --git a/app/views/post_votes/index.html.erb b/app/views/post_votes/index.html.erb
index 9695efb3c..005bbdd0c 100644
--- a/app/views/post_votes/index.html.erb
+++ b/app/views/post_votes/index.html.erb
@@ -28,7 +28,7 @@
<%= link_to "»", post_votes_path(search: { user_name: vote.user.name }) %>
<%= time_ago_in_words_tagged(vote.created_at) %>
<% end %>
- <% t.column do |vote| %>
+ <% t.column column: "control" do |vote| %>
<% if vote.user == CurrentUser.user %>
<%= link_to "unvote", post_post_votes_path(vote.post), remote: true, method: :delete %>
<% end %>
diff --git a/app/views/tag_aliases/_listing.html.erb b/app/views/tag_aliases/_listing.html.erb
index 3d0dfd7be..730acb3b0 100644
--- a/app/views/tag_aliases/_listing.html.erb
+++ b/app/views/tag_aliases/_listing.html.erb
@@ -16,7 +16,7 @@
<% t.column "Status", {width: "5%"} do |tag_alias| %>
<%= tag_alias.status %>
<% end %>
- <% t.column width: "15%" do |tag_alias| %>
+ <% t.column column: "control", width: "15%" do |tag_alias| %>
<%= link_to "Show", tag_alias_path(tag_alias) %>
<% if tag_alias.is_pending? && tag_alias.editable_by?(CurrentUser.user) %>
diff --git a/app/views/tag_implications/_listing.html.erb b/app/views/tag_implications/_listing.html.erb
index 305a662b2..94543a8c8 100644
--- a/app/views/tag_implications/_listing.html.erb
+++ b/app/views/tag_implications/_listing.html.erb
@@ -16,7 +16,7 @@
<% t.column "Status", {width: "5%"} do |tag_implication| %>
<%= tag_implication.status %>
<% end %>
- <% t.column width: "15%" do |tag_implication| %>
+ <% t.column column: "control", width: "15%" do |tag_implication| %>
<%= link_to "Show", tag_implication_path(tag_implication) %>
<% if tag_implication.is_pending? && tag_implication.editable_by?(CurrentUser.user) %>
diff --git a/app/views/tags/index.html.erb b/app/views/tags/index.html.erb
index 96dc2b32e..69d8366ef 100644
--- a/app/views/tags/index.html.erb
+++ b/app/views/tags/index.html.erb
@@ -8,7 +8,7 @@
<%= link_to_wiki "?", tag.name, class: "tag-type-#{tag.category}" %>
<%= link_to tag.name, posts_path(tags: tag.name), class: "tag-type-#{tag.category}" %>
<% end %>
- <% t.column do |tag| %>
+ <% t.column column: "control" do |tag| %>
<%= link_to_if tag.editable_by?(CurrentUser.user), "Edit", edit_tag_path(tag) %> |
<%= link_to "History", post_versions_path(search: { changed_tags: tag.name }) %> |
<%= link_to "Related", related_tag_path(search: { query: tag.name }) %> |
diff --git a/app/views/user_feedbacks/index.html.erb b/app/views/user_feedbacks/index.html.erb
index 36b63c89a..4aeda7899 100644
--- a/app/views/user_feedbacks/index.html.erb
+++ b/app/views/user_feedbacks/index.html.erb
@@ -37,7 +37,7 @@
<%= link_to "»", user_feedbacks_path(search: { creator_name: feedback.creator.name }) %>
<%= time_ago_in_words_tagged(feedback.created_at) %>
<% end %>
- <% t.column do |feedback| %>
+ <% t.column column: "control" do |feedback| %>
<% if feedback.editable_by?(CurrentUser.user) %>
<%= link_to "edit", edit_user_feedback_path(feedback) %>
<% if feedback.deletable_by?(CurrentUser.user) && !feedback.is_deleted? %>
diff --git a/app/views/user_name_change_requests/index.html.erb b/app/views/user_name_change_requests/index.html.erb
index 3a275c9cb..d35872ef5 100644
--- a/app/views/user_name_change_requests/index.html.erb
+++ b/app/views/user_name_change_requests/index.html.erb
@@ -15,7 +15,7 @@
<% t.column "Date" do |change_request| %>
<%= compact_time change_request.created_at %>
<% end %>
- <% t.column do |change_request| %>
+ <% t.column column: "control" do |change_request| %>
<%= link_to "view", user_name_change_request_path(change_request) %>
<% end %>
<% end %>
diff --git a/app/views/users/index.html.erb b/app/views/users/index.html.erb
index 182ae9436..60ebbd573 100644
--- a/app/views/users/index.html.erb
+++ b/app/views/users/index.html.erb
@@ -3,7 +3,7 @@
Users
<%= table_for @users, width: "100%" do |t| %>
- <% t.column do |user| %>
+ <% t.column column: "control" do |user| %>
<% if CurrentUser.is_admin? %>
<%= link_to "Edit", edit_admin_user_path(user) %>
<% end %>
diff --git a/app/views/wiki_page_versions/_listing.html.erb b/app/views/wiki_page_versions/_listing.html.erb
index 649e25e00..32a9d5951 100644
--- a/app/views/wiki_page_versions/_listing.html.erb
+++ b/app/views/wiki_page_versions/_listing.html.erb
@@ -1,15 +1,15 @@
<%= form_tag(diff_wiki_page_versions_path, :method => :get) do %>
<%= table_for @wiki_page_versions, width: "100%" do |t| %>
- <% t.column width: "3%" do |wiki_page_version, i| %>
+ <% t.column column: "diff", width: "3%" do |wiki_page_version, i| %>
<%= link_to_if wiki_page_version.previous.present?, "diff", diff_wiki_page_versions_path(otherpage: wiki_page_version.previous.try(:id), thispage: wiki_page_version.id) %>
<% end %>
<% if wiki_page_versions_listing_type == :page %>
- <% t.column width: "2%" do |wiki_page_version, i| %>
+ <% t.column column: "this-page", width: "2%" do |wiki_page_version, i| %>
<%= radio_button_tag "thispage", wiki_page_version.id, (i == 1) %>
<% end %>
- <% t.column width: "2%" do |wiki_page_version, i| %>
+ <% t.column column: "other-page", width: "2%" do |wiki_page_version, i| %>
<%= radio_button_tag "otherpage", wiki_page_version.id, (i == 0) %>
<% end %>
<% end %>