2016-10-04 17:51:47 +08:00
|
|
|
<% @notifications.each do |notification| %>
|
|
|
|
<li class="notification <%= 'unseen' unless notification.already_seen(current_user) %>">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-xs-3 col-md-1">
|
2016-11-03 21:48:01 +08:00
|
|
|
<span style="display: none;" data-hook="user-notification-list-item"></span>
|
2017-08-30 00:49:07 +08:00
|
|
|
<%= render partial: "user_notifications/icons/#{notification.type_of}",
|
|
|
|
locals: {notification: notification},
|
|
|
|
formats: [:html] %>
|
2016-10-04 17:51:47 +08:00
|
|
|
</div>
|
|
|
|
<div class="col-xs-9 col-md-11">
|
2017-01-04 00:27:22 +08:00
|
|
|
<strong><%= sanitize_input(notification.title) %></strong> <br>
|
|
|
|
<%= l(notification.created_at, format: :full) %> | <%= sanitize_input(notification.message) %>
|
2016-10-04 17:51:47 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
<% end %>
|