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

@@ -1,7 +1,7 @@
<div id="p-<%= artist_commentary_versions_listing_type %>-listing">
<%= table_for @commentary_versions, {class: "striped autofit", width: "100%"} do |t| %>
<% t.column "Post", {width: "5%"} do |commentary_version| %>
<% t.column "Post", width: "5%" do |commentary_version| %>
<% if artist_commentary_versions_listing_type == :revert %>
<%= link_to commentary_version.post_id, post_path(commentary_version.post_id) %>
<% else %>
@@ -21,10 +21,10 @@
<%= format_commentary_title(commentary_version.translated_title) %>
<%= format_commentary_description(commentary_version.translated_description) %>
<% end %>
<% t.column "Edited by", {width: "10%"} do |commentary_version| %>
<% t.column "Edited by", width: "10%" do |commentary_version| %>
<%= link_to_user commentary_version.updater %>
<% end %>
<% t.column "Date", {width: "10%"} do |commentary_version| %>
<% t.column "Date", width: "10%" do |commentary_version| %>
<%= compact_time commentary_version.updated_at %>
<% end %>
<% if artist_commentary_versions_listing_type == :revert %>