2019-04-02 17:16:08 +08:00
|
|
|
<% provide(:head_title, t("my_modules.activities.head_title", project: h(@my_module.experiment.project.name), module: h(@my_module.name))) %>
|
2020-12-10 22:15:36 +08:00
|
|
|
<% provide(:sidebar_title, t("sidebar.my_module.sidebar_title")) %>
|
|
|
|
|
|
|
|
<%= content_for :sidebar do %>
|
2022-01-03 17:48:17 +08:00
|
|
|
<%= render partial: "shared/sidebar/#{@my_module.archived_branch? ? 'archived_my_module' : 'my_module'}.html.erb",
|
2021-06-18 22:52:19 +08:00
|
|
|
locals: {
|
|
|
|
my_modules: @experiment_my_modules,
|
2022-01-03 17:48:17 +08:00
|
|
|
experiment: @my_module.experiment,
|
2021-06-18 22:52:19 +08:00
|
|
|
current_my_module: @my_module
|
|
|
|
}
|
|
|
|
%>
|
2020-12-10 22:15:36 +08:00
|
|
|
<% end %>
|
2023-05-15 20:17:41 +08:00
|
|
|
<% provide(:container_class, 'no-second-nav-container') %>
|
|
|
|
<div class="content-pane flexible">
|
|
|
|
<%= render partial: 'my_modules/header' %>
|
|
|
|
<div class="global-activities-container container-flex task-activities">
|
|
|
|
<div class="ga-top ">
|
|
|
|
<%= render partial: "my_modules/activities/top_pane" %>
|
|
|
|
</div>
|
2019-03-28 17:55:48 +08:00
|
|
|
|
2023-05-15 20:17:41 +08:00
|
|
|
<div class="ga-bottom">
|
2019-03-28 17:55:48 +08:00
|
|
|
|
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) %>"
|
|
|
|
data-starting-timestamp="<%= @starting_timestamp %>">
|
|
|
|
<%= render partial: "global_activities/activity_list.html.erb" %>
|
|
|
|
</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>
|
2019-08-08 21:51:08 +08:00
|
|
|
</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>
|
2018-05-08 22:33:42 +08:00
|
|
|
</div>
|
2023-05-15 20:17:41 +08:00
|
|
|
</div>
|
2016-02-12 23:52:43 +08:00
|
|
|
</div>
|
|
|
|
|
2019-03-28 17:55:48 +08:00
|
|
|
<%= javascript_include_tag 'global_activities/index.js' %>
|