mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-14 21:24:54 +08:00
26 lines
943 B
Text
26 lines
943 B
Text
<% provide(:head_title, raw(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">
|
|
<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 %>
|
|
</ul>
|
|
</div>
|
|
<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>
|
|
</div>
|
|
|
|
<%= javascript_include_tag("notifications") %>
|