scinote-web/app/views/user_notifications/index.html.erb

27 lines
965 B
Plaintext
Raw Normal View History

<% provide(:head_title, sanitize_input(t("notifications.title"))) %>
<div class="notifications-container">
<div class="notifications-header">
<span><%= t('notifications.title') %></span><span class="pull-right"><%= link_to t('nav.user.settings'), preferences_path %></span>
</div>
<div class="notifications-body">
2016-10-03 20:40:15 +08:00
<ul class="notifications-list">
<% 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>
<% if @overflown %>
2018-03-29 19:58:14 +08:00
<div class="text-center">
<a class="btn btn-default btn-more-notifications" href="<%= @more_notifications_url %>" data-remote="true">
<span><%= t('notifications.show_more') %></span>
</a>
</div>
<% end %>
2016-10-03 20:40:15 +08:00
</div>
<%= javascript_include_tag("notifications") %>