2017-01-11 22:50:11 +08:00
|
|
|
<% provide(:head_title, sanitize_input(t("notifications.title"))) %>
|
2016-10-04 17:51:47 +08:00
|
|
|
<div class="notifications-container">
|
|
|
|
<div class="notifications-header">
|
2016-10-05 22:26:26 +08:00
|
|
|
<span><%= t('notifications.title') %></span><span class="pull-right"><%= link_to t('nav.user.settings'), preferences_path %></span>
|
2016-10-04 17:51:47 +08:00
|
|
|
</div>
|
|
|
|
<div class="notifications-body">
|
2016-10-03 20:40:15 +08:00
|
|
|
<ul class="notifications-list">
|
2016-10-05 22:48:40 +08:00
|
|
|
<% if @notifications.count > 0 %>
|
|
|
|
<%= render 'list', notifications: @notifications %>
|
|
|
|
<% else %>
|
|
|
|
<li class="notification no-notifications">
|
|
|
|
<em><%= t('notifications.no_notifications') %></em>
|
|
|
|
</li>
|
|
|
|
<% end %>
|
2016-10-03 20:40:15 +08:00
|
|
|
</ul>
|
|
|
|
</div>
|
2016-10-04 17:51:47 +08:00
|
|
|
<div class="notifications-footer">
|
|
|
|
<% if @overflown %>
|
|
|
|
<a class="btn-more-notifications col-xs-12" href="<%= @more_notifications_url %>" data-remote="true">
|
|
|
|
<span><%= t('notifications.show_more') %></span>
|
|
|
|
</a>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
2016-10-03 20:40:15 +08:00
|
|
|
</div>
|
|
|
|
|
2016-10-04 17:51:47 +08:00
|
|
|
<%= javascript_include_tag("notifications") %>
|