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

26 lines
940 B
Text
Raw Normal View History

<% provide(:head_title, t("my_modules.activities.head_title", project: h(@my_module.experiment.project.name), module: h(@my_module.name)).html_safe) %>
2016-02-12 23:52:43 +08:00
<%= render partial: "shared/sidebar" %>
<%= render partial: "shared/secondary_navigation" %>
<div class="row">
<% if @activities.length == 0 %>
<div class="col-xs-12">
<em><%= t 'my_modules.activities.no_activities' %></em>
</div>
<% else %>
2016-07-21 19:11:15 +08:00
<div class="col-xs-12">
2016-02-12 23:52:43 +08:00
<%= render partial: "my_modules/activities/list_activities.html.erb" %>
<!-- Load more activities -->
2016-07-21 19:11:15 +08:00
<% if @overflown %>
2016-02-12 23:52:43 +08:00
<div class="col-sm-8 fluid-content text-center">
<a class="btn btn-primary btn-more-activities" href="<%= @more_activities_url %>" data-remote="true">
<%= t('my_modules.activities.more_activities') %></a>
</div>
<% end %>
</div>
</div>
<% end %>
</div>
<%= javascript_include_tag("my_modules/activities") %>