Convert classes to use data attributes

- Remote resolved classes on post flags since they were unused
This commit is contained in:
BrokenEagle
2020-01-04 03:40:50 +00:00
parent 223a6df5d8
commit 4b904dff5a
8 changed files with 11 additions and 23 deletions

View File

@@ -10,7 +10,7 @@
<%= render "search" %>
<%= table_for @dmails, {class: "striped", width: "100%"}, {class: ["read-%s", "item.is_read?"]} do |t| %>
<%= table_for @dmails, {class: "striped", width: "100%"} do |t| %>
<% t.column "Date" do |dmail| %>
<%= compact_time(dmail.created_at) %>
<% end %>

View File

@@ -4,7 +4,7 @@
<%= render "search" %>
<%= render "posts/partials/common/inline_blacklist" %>
<%= table_for @post_flags, {class: "striped", width: "100%"}, {class: ["resolved-%s", "item.is_resolved?"]} do |t| %>
<%= table_for @post_flags, {class: "striped", width: "100%"} do |t| %>
<% t.column "Post", {width: "1%"} do |post_flag| %>
<%= PostPresenter.preview(post_flag.post, :tags => "status:any") %>
<% end %>

View File

@@ -13,7 +13,7 @@
<%= f.submit "Search" %>
<% end %>
<%= table_for @user_feedbacks, {class: "striped autofit"}, {class: ["feedback-category-%s", "item.category"]} do |t| %>
<%= table_for @user_feedbacks, {class: "striped autofit"} do |t| %>
<% t.column "User" do |feedback| %>
<%= link_to_user feedback.user %>
<%= link_to "»", user_feedbacks_path(search: { user_name: feedback.user.name }) %>