2019-02-21 23:15:13 +08:00
|
|
|
<%= 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>
|
2019-02-13 20:06:14 +08:00
|
|
|
</div>
|
2019-02-21 23:15:13 +08:00
|
|
|
</div>
|
|
|
|
<div class="body-block">
|
|
|
|
<div class="datetime">
|
2019-04-24 14:04:47 +08:00
|
|
|
<span><%= l(notification.created_at, format: :full) %></span>
|
2019-02-21 23:15:13 +08:00
|
|
|
</div>
|
|
|
|
<h5 class="title">
|
|
|
|
<%= notification.title %>
|
|
|
|
</h5>
|
|
|
|
<div class="message">
|
|
|
|
<span><%= notification.description %></span>
|
2019-02-13 20:06:14 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
2019-02-20 20:15:16 +08:00
|
|
|
<% end %>
|