mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-11 10:06:53 +08:00
26 lines
930 B
Text
26 lines
930 B
Text
<% provide(:head_title, raw(t("my_modules.activities.head_title", project: @my_module.experiment.project.name, module: @my_module.name))) %>
|
|
<%= 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") %>
|
|
|