mirror of
https://github.com/ENSL/ensl.org.git
synced 2024-12-26 04:21:36 +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;
|
display: inline-block;
|
||||||
font-style: italic;
|
font-style: italic;
|
||||||
padding: 0 3px;
|
padding: 0 3px;
|
||||||
|
|
||||||
|
a {
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,7 +18,11 @@
|
||||||
<div id="inbox" class="tab">
|
<div id="inbox" class="tab">
|
||||||
<% if cuser.received_messages.any? %>
|
<% if cuser.received_messages.any? %>
|
||||||
<% cuser.received_messages.reverse_each do |message| %>
|
<% 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 } %>
|
<%= render partial: 'message', locals: { message: message } %>
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
Loading…
Reference in a new issue