2016-09-29 20:49:58 +08:00
|
|
|
<% @recent_notifications.each do |notification| %>
|
2016-10-03 14:20:23 +08:00
|
|
|
<li class="notification <%= 'unseen' unless notification.already_seen(current_user) %>">
|
2016-09-29 20:49:58 +08:00
|
|
|
<div class="row">
|
2016-10-03 14:20:23 +08:00
|
|
|
<div class="col-xs-2">
|
2017-08-30 00:49:07 +08:00
|
|
|
<%= render partial: "user_notifications/icons/#{notification.type_of}",
|
2018-11-23 18:12:10 +08:00
|
|
|
locals: { notification: notification },
|
2017-08-30 00:49:07 +08:00
|
|
|
formats: [:html] %>
|
2016-09-29 20:49:58 +08:00
|
|
|
</div>
|
2016-10-03 22:14:22 +08:00
|
|
|
|
2016-10-03 14:20:23 +08:00
|
|
|
<div class="col-xs-10">
|
2017-01-04 00:27:22 +08:00
|
|
|
<strong><%= sanitize_input(notification.title) %></strong> <br>
|
2018-09-24 00:45:13 +08:00
|
|
|
<% if notification.deliver? %>
|
2018-11-23 18:12:10 +08:00
|
|
|
<%= I18n.t('notifications.deliver.download_text') %></br>
|
2018-09-24 00:45:13 +08:00
|
|
|
<% end %>
|
2017-01-04 00:27:22 +08:00
|
|
|
<%= l(notification.created_at, format: :full) %> | <%= sanitize_input(notification.message) %>
|
2016-09-29 20:49:58 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<li>
|
|
|
|
<% end %>
|