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

28 lines
924 B
Text
Raw Normal View History

<% provide :head_title, t('nav.label.activities') %>
<div class="content-pane">
<div class="container" id="global-activity-page">
<div>
2018-06-07 15:29:47 +08:00
<ul id="list-activities" class="no-style content-activities">
2021-07-23 17:56:28 +08:00
<% if @vars[:activities].blank? %>
<li><em><%= t'activities.index.no_activities' %></em></li>
<% else %>
<% @vars[:activities].each do |activity| %>
<%= render 'activity.html.erb', activity: activity %>
<% end %>
<% end %>
</ul>
<% if @vars[:more_activities_url].present? && @vars[:page] == 1 %>
<div class="text-center">
2023-06-19 21:45:22 +08:00
<a class="btn btn-secondary btn-more-activities"
href="<%= @vars[:more_activities_url] %>"
data-remote="true">
<%= t'activities.index.more_activities' %></a>
</div>
<% end %>
</div>
</div>
</div>
<%= javascript_include_tag 'activities/index.js' %>