diff --git a/app/assets/stylesheets/specific/post_flags.css.scss b/app/assets/stylesheets/specific/post_flags.css.scss index 8ec371aec..992e027f5 100644 --- a/app/assets/stylesheets/specific/post_flags.css.scss +++ b/app/assets/stylesheets/specific/post_flags.css.scss @@ -2,4 +2,12 @@ div#c-post-flags { li { list-style-type: disc; } + + tr.resolved-true { + background: #DDD !important; + } + + tr.resolved-false { + background: #FFF !important; + } } \ No newline at end of file diff --git a/app/views/post_flags/index.html.erb b/app/views/post_flags/index.html.erb index c114f3b0c..7b7534452 100644 --- a/app/views/post_flags/index.html.erb +++ b/app/views/post_flags/index.html.erb @@ -5,22 +5,22 @@ - Creator + <% if CurrentUser.user.is_janitor? %> + Creator + <% end %> Reason - Resolved <% @post_flags.each do |post_flag| %> - + <%= PostPresenter.preview(post_flag.post) %> - - <% if CurrentUser.user.is_janitor? %> + <% if CurrentUser.user.is_janitor? %> + <%= link_to post_flag.creator.name, user_path(post_flag.creator) %> - <% end %> - + + <% end %> <%= format_text post_flag.reason %> - <%= post_flag.is_resolved? %> <% end %>