mirror of
https://github.com/ENSL/ensl.org.git
synced 2024-12-25 12:01:03 +00:00
Fixed new PMs not highlighted
This commit is contained in:
parent
472cad9155
commit
e0710c9efc
2 changed files with 9 additions and 1 deletions
|
@ -44,4 +44,8 @@
|
|||
display: inline-block;
|
||||
font-style: italic;
|
||||
padding: 0 3px;
|
||||
|
||||
a {
|
||||
color: white;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -18,7 +18,11 @@
|
|||
<div id="inbox" class="tab">
|
||||
<% if cuser.received_messages.any? %>
|
||||
<% cuser.received_messages.reverse_each do |message| %>
|
||||
<div class="message <% 'highlight' if cuser.new_messages.include?(message) %>">
|
||||
<% if cuser.new_messages.include?(message) %>
|
||||
<div class="message highlight">
|
||||
<% else %>
|
||||
<div class="message">
|
||||
<% end %>
|
||||
<%= render partial: 'message', locals: { message: message } %>
|
||||
</div>
|
||||
<% end %>
|
||||
|
|
Loading…
Reference in a new issue