From e0710c9efce783302c6e507a408fee66be79e8a4 Mon Sep 17 00:00:00 2001 From: Absurdon Date: Thu, 16 Feb 2017 01:41:36 +0100 Subject: [PATCH] Fixed new PMs not highlighted --- app/assets/stylesheets/themes/default/mixins/_flashes.scss | 4 ++++ app/views/messages/index.html.erb | 6 +++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/app/assets/stylesheets/themes/default/mixins/_flashes.scss b/app/assets/stylesheets/themes/default/mixins/_flashes.scss index 820eb04..ccb5ed0 100644 --- a/app/assets/stylesheets/themes/default/mixins/_flashes.scss +++ b/app/assets/stylesheets/themes/default/mixins/_flashes.scss @@ -44,4 +44,8 @@ display: inline-block; font-style: italic; padding: 0 3px; + + a { + color: white; + } } diff --git a/app/views/messages/index.html.erb b/app/views/messages/index.html.erb index 1d9ed26..1f41e64 100644 --- a/app/views/messages/index.html.erb +++ b/app/views/messages/index.html.erb @@ -18,7 +18,11 @@
<% if cuser.received_messages.any? %> <% cuser.received_messages.reverse_each do |message| %> -
+ <% if cuser.new_messages.include?(message) %> +
+ <% else %> +
+ <% end %> <%= render partial: 'message', locals: { message: message } %>
<% end %>