2017-01-12 23:54:15 +08:00
|
|
|
<% 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" %>
|
|
|
|
|
2018-05-08 22:33:42 +08:00
|
|
|
<div class="content-pane">
|
|
|
|
<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-default btn-more-activities" href="<%= @more_activities_url %>" data-remote="true">
|
|
|
|
<%= t('my_modules.activities.more_activities') %></a>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
2016-02-12 23:52:43 +08:00
|
|
|
</div>
|
2018-05-08 22:33:42 +08:00
|
|
|
<% end %>
|
2016-02-12 23:52:43 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<%= javascript_include_tag("my_modules/activities") %>
|