Standardize use of column width parameter
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
<%= render "posts/partials/common/inline_blacklist" %>
|
||||
|
||||
<%= table_for @post_flags, width: "100%" do |t| %>
|
||||
<% t.column "Post", {width: "1%"} do |post_flag| %>
|
||||
<% t.column "Post", width: "1%" do |post_flag| %>
|
||||
<%= PostPresenter.preview(post_flag.post, :tags => "status:any") %>
|
||||
<% end %>
|
||||
<% t.column "Reason" do |post_flag| %>
|
||||
@@ -13,28 +13,28 @@
|
||||
<%= format_text post_flag.reason, inline: true %>
|
||||
</span>
|
||||
<% end %>
|
||||
<% t.column "Flags", {width: "1%"} do |post_flag| %>
|
||||
<% t.column "Flags", width: "1%" do |post_flag| %>
|
||||
<%= link_to post_flag.post.flags.size, post_flags_path(search: { post_id: post_flag.post_id }) %>
|
||||
<% end %>
|
||||
<% t.column "Category", {width: "1%"} do |post_flag| %>
|
||||
<% t.column "Category", width: "1%" do |post_flag| %>
|
||||
<%= link_to post_flag.category.to_s, post_flags_path(search: params[:search].merge(category: post_flag.category)) %>
|
||||
<% end %>
|
||||
<% t.column "Resolved?", {width: "1%"} do |post_flag| %>
|
||||
<% t.column "Resolved?", width: "1%" do |post_flag| %>
|
||||
<%= link_to post_flag.is_resolved?.to_s, post_flags_path(search: params[:search].merge(is_resolved: post_flag.is_resolved?)) %>
|
||||
<% end %>
|
||||
<% t.column "Uploaded", {width: "15%"} do |post_flag| %>
|
||||
<% t.column "Uploaded", width: "15%" do |post_flag| %>
|
||||
<%= compact_time post_flag.post.created_at %>
|
||||
<br> by <%= link_to_user post_flag.post.uploader %>
|
||||
<%= link_to "»", post_flags_path(search: params[:search].merge(post_tags_match: "#{params[:search][:post_tags_match]} user:#{post_flag.post.uploader.name}".strip)) %>
|
||||
<% end %>
|
||||
<% t.column "Flagged", {width: "15%"} do |post_flag| %>
|
||||
<% t.column "Flagged", width: "15%" do |post_flag| %>
|
||||
<%= compact_time post_flag.created_at %>
|
||||
<% if CurrentUser.can_view_flagger_on_post?(post_flag) %>
|
||||
<br> by <%= link_to_user post_flag.creator %>
|
||||
<%= link_to "»", post_flags_path(search: params[:search].merge(creator_name: post_flag.creator.name)) %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
<% t.column "Approver", {width: "15%"} do |post_flag| %>
|
||||
<% t.column "Approver", width: "15%" do |post_flag| %>
|
||||
<% if post_flag.post.approver %>
|
||||
<%= link_to_user post_flag.post.approver %>
|
||||
<%= link_to "»", post_flags_path(search: params[:search].merge(post_tags_match: "#{params[:search][:post_tags_match]} approver:#{post_flag.post.approver.name}".strip)) %>
|
||||
|
||||
Reference in New Issue
Block a user