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

53 lines
2.1 KiB
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))) %>
<% provide(:sidebar_title, t("sidebar.my_module.sidebar_title")) %>
<%= content_for :sidebar do %>
<%= render partial: "shared/sidebar/#{@my_module.archived_branch? ? 'archived_my_module' : 'my_module'}",
2021-06-18 22:52:19 +08:00
locals: {
my_modules: @experiment_my_modules,
experiment: @my_module.experiment,
2021-06-18 22:52:19 +08:00
current_my_module: @my_module
}
%>
<% end %>
2023-05-15 20:17:41 +08:00
<% provide(:container_class, 'no-second-nav-container') %>
<div class="content-pane flexible with-grey-background">
2023-05-15 20:17:41 +08:00
<%= render partial: 'my_modules/header' %>
<!-- Header Actions -->
<%= render partial: 'my_modules/header_actions' %>
2023-05-15 20:17:41 +08:00
<div class="global-activities-container container-flex task-activities">
<div class="ga-top ">
<%= render partial: "my_modules/activities/top_pane" %>
</div>
2023-05-15 20:17:41 +08:00
<div class="ga-bottom">
2023-05-15 20:17:41 +08:00
<div class="ga-main">
<div class="activities-container perfect-scrollbar">
<div class="no-activities-message text-center <%= 'hidden' if @grouped_activities.keys.any? %>">
<p><%= t('activities.index.no_activities_task_message') %></p>
</div>
<div class="ga-activities-list" data-activities-url="<%= activities_my_module_path(@my_module) %>">
<%= render partial: "global_activities/activity_list" %>
2023-05-15 20:17:41 +08:00
</div>
<div class="text-center">
2023-06-19 21:45:22 +08:00
<a class="btn btn-secondary btn-more-activities <%= 'hidden' unless @next_page %>"
2023-05-15 20:17:41 +08:00
data-next-page="<%= @next_page %>">
<%= t'activities.index.more_activities' %>
</a>
</div>
<div id="ga-more-activities-placeholder" class="hidden"></div>
2019-12-02 23:04:50 +08:00
</div>
</div>
2023-05-15 20:17:41 +08:00
<div class="ga-side">
<div class="filters-container perfect-scrollbar">
<%= render partial: "my_modules/activities/side_filters" %>
</div>
2019-12-02 23:04:50 +08:00
</div>
</div>
2023-05-15 20:17:41 +08:00
</div>
2016-02-12 23:52:43 +08:00
</div>
<%= javascript_include_tag 'global_activities/index.js' %>