2019-03-08 20:09:27 +08:00
|
|
|
<% provide :head_title, t('nav.label.activities') %>
|
2019-02-27 23:02:53 +08:00
|
|
|
|
2019-03-06 17:34:04 +08:00
|
|
|
<div class="global-activities-container container-flex">
|
|
|
|
<div class="row">
|
|
|
|
<div class="ga-top col-md-12">
|
|
|
|
<%= render partial: "top_pane" %>
|
2019-02-13 23:19:18 +08:00
|
|
|
</div>
|
|
|
|
|
2019-04-02 15:56:50 +08:00
|
|
|
<div class="ga-side col-lg-3 col-md-12 col-xl-2 perfect-scrollbar">
|
2019-03-06 17:34:04 +08:00
|
|
|
<%= render partial: "side_filters" %>
|
2019-02-27 23:02:53 +08:00
|
|
|
</div>
|
2019-02-13 23:19:18 +08:00
|
|
|
|
2019-04-02 15:56:50 +08:00
|
|
|
<div class="ga-main col-lg-9 col-md-12 col-xl-10 perfect-scrollbar">
|
2019-03-27 16:43:04 +08:00
|
|
|
<div class="no-activities-message text-center <%= 'hidden' if @grouped_activities.keys.any? %>">
|
|
|
|
<p><%= t('activities.index.no_activities_message') %></p>
|
|
|
|
</div>
|
2019-04-12 21:37:45 +08:00
|
|
|
<div class="ga-activities-list"
|
|
|
|
data-activities-url="<%= global_activities_path %>"
|
|
|
|
data-starting-timestamp="<%= @starting_timestamp %>">
|
2019-03-08 17:29:51 +08:00
|
|
|
<%= render partial: "activity_list.html.erb" %>
|
|
|
|
</div>
|
|
|
|
<div class="text-center">
|
2019-04-12 21:37:45 +08:00
|
|
|
<a class="btn btn-default btn-more-activities <%= 'hidden' unless @next_page %>"
|
|
|
|
data-next-page="<%= @next_page %>">
|
2019-03-08 17:29:51 +08:00
|
|
|
<%= t'activities.index.more_activities' %>
|
|
|
|
</a>
|
2019-03-06 17:34:04 +08:00
|
|
|
</div>
|
2019-04-10 21:45:17 +08:00
|
|
|
<div id="ga-more-activities-placeholder" class="hidden"></div>
|
2019-02-13 23:19:18 +08:00
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
2019-02-27 23:02:53 +08:00
|
|
|
|
2019-04-02 17:14:36 +08:00
|
|
|
<script>
|
2019-04-10 21:45:17 +08:00
|
|
|
var gaUrlQueryParams= <%= raw @filters.to_json %>
|
2019-04-02 17:14:36 +08:00
|
|
|
</script>
|
2019-02-27 23:02:53 +08:00
|
|
|
<%= javascript_include_tag 'global_activities/index.js' %>
|
2019-03-08 17:29:51 +08:00
|
|
|
<%= javascript_include_tag 'global_activities/side_pane.js' %>
|