mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-18 23:21:30 +08:00
25 lines
940 B
Text
25 lines
940 B
Text
<% provide(:head_title, t("my_modules.activities.head_title", project: h(@my_module.experiment.project.name), module: h(@my_module.name)).html_safe) %>
|
|
<%= 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 %>
|
|
<div class="col-xs-12">
|
|
<%= render partial: "my_modules/activities/list_activities.html.erb" %>
|
|
<!-- Load more activities -->
|
|
<% if @overflown %>
|
|
<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") %>
|