2019-02-20 20:15:16 +08:00
|
|
|
<%= link_to system_notification_path(notification.id, format: :json), class: "modal-system-notification", remote: true do %>
|
|
|
|
<div
|
2019-02-13 20:06:14 +08:00
|
|
|
class="system-notification"
|
|
|
|
data-new="<%= notification.seen_at ? 0 : 1 %>"
|
2019-02-15 20:07:29 +08:00
|
|
|
data-unread="<%= notification.read_at ? 0 : 1 %>"
|
2019-02-13 20:06:14 +08:00
|
|
|
data-system-notification-id="<%= notification.id %>"
|
|
|
|
>
|
2019-02-20 20:15:16 +08:00
|
|
|
<div class="status-block">
|
2019-02-15 20:07:29 +08:00
|
|
|
<div class="status-icon <%= notification.seen_at ? "seen" : "" %>">
|
|
|
|
<i class="fas fa-gift"></i>
|
|
|
|
</div>
|
2019-02-13 20:06:14 +08:00
|
|
|
</div>
|
2019-02-20 20:15:16 +08:00
|
|
|
<div class="body-block">
|
|
|
|
<div class="datetime">
|
|
|
|
<span><%= l(notification.last_time_changed_at, format: :full) %></span>
|
|
|
|
</div>
|
|
|
|
<h5 class="title">
|
|
|
|
<strong><%= notification.title %></strong>
|
|
|
|
</h5>
|
|
|
|
<div class="message">
|
|
|
|
<span><%= notification.description %></span>
|
|
|
|
</div>
|
2019-02-13 20:06:14 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
2019-02-20 20:15:16 +08:00
|
|
|
<% end %>
|