Standardize use of column width parameter

This commit is contained in:
BrokenEagle
2020-01-13 21:12:45 +00:00
parent 3ab2c4c3ea
commit 63203d24cc
11 changed files with 39 additions and 39 deletions

View File

@@ -2,13 +2,13 @@
<%= table_for @note_versions, {class: "striped autofit", width: "100%"} do |t| %>
<% t.column column: "empty" %>
<% t.column "Post", {width: "5%"} do |note_version| %>
<% 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? %>
<%= link_to "»", note_versions_path(search: {post_id: note_version.post_id}) %>
<% end %>
<% end %>
<% t.column "Note", {width: "5%"} do |note_version| %>
<% t.column "Note", width: "5%" do |note_version| %>
<%= link_to "#{note_version.note_id}.#{note_version.version}", post_path(note_version.post_id, anchor: "note-#{note_version.note_id}") %>
<% if params.dig(:search, :post_id).present? %>
<%= link_to "»", note_versions_path(search: {note_id: note_version.note_id}) %>
@@ -21,13 +21,13 @@
<% end %>
<%= note_version_body_diff_info(note_version) %>
<% end %>
<% t.column "Position", {width: "5%"} do |note_version| %>
<% t.column "Position", width: "5%" do |note_version| %>
<%= note_version_position_diff(note_version) %>
<% end %>
<% t.column "Edited By", {width: "10%"} do |note_version| %>
<% t.column "Edited By", width: "10%" do |note_version| %>
<%= link_to_user note_version.updater %>
<% end %>
<% t.column "Date", {width: "10%"} do |note_version| %>
<% t.column "Date", width: "10%" do |note_version| %>
<%= compact_time note_version.updated_at %>
<% end %>
<% if note_versions_listing_type == :revert %>