scinote-web/app/views/system_notifications/_notification.html.erb
aignatov-bio 5f78d83f9c
Changing status from unread to read system notification is not correct one [SCI-3077 and SCI-3075] (#1513)
* fix dropdown apperance

* Remove search and fix duplicate bug

* Fix specs for new method
2019-02-21 16:15:13 +01:00

25 lines
778 B
Plaintext

<%= link_to system_notification_path(notification.id, format: :json), {
class: "modal-system-notification system-notification",
'data-new': notification.seen_at ? 0 : 1,
'data-unread': notification.read_at ? 0 : 1,
'data-system-notification-id': notification.id,
remote: true
} do %>
<div class="status-block">
<div class="status-icon <%= notification.read_at ? "seen" : "" %>">
<i class="fas fa-gift"></i>
</div>
</div>
<div class="body-block">
<div class="datetime">
<span><%= l(notification.last_time_changed_at, format: :full) %></span>
</div>
<h5 class="title">
<%= notification.title %>
</h5>
<div class="message">
<span><%= notification.description %></span>
</div>
</div>
<% end %>