<%# Copyright (C) The Arvados Authors. All rights reserved. SPDX-License-Identifier: AGPL-3.0 %> <% content_for :css do %> table#users-activity-table th { overflow-x: hidden; } table#users-activity-table .cell-for-span-This-month, table#users-activity-table .cell-for-span-Last-month { background: #eee; } <% end %> <% @spans.each do |_| %> <% 3.times do %> <% end %> <% end %> <% @spans.each do |span, start_at, end_at| %> <% end %> <% @spans.each do |span, _| %> <% end %> <% @users.each do |user| %> <% @spans.each do |span, _| %> <% ['logins', 'jobs', 'pipeline_instances'].each do |type| %> <% end %> <% end %> <% end %>
User <%= span %>
<%= start_at.strftime('%b %-d') %> - <%= (end_at-1.second).strftime('%b %-d') %>
Logins Jobs Pipelines
<% if user.uuid %> <%= link_to_if_arvados_object user, friendly_name: true %> <% else %> Total <% end %> <%= @user_activity[user.uuid][span + " " + type].to_s %>
<% content_for :footer_js do %> $('#users-activity-table td small').each(function(){ if ($(this).html().trim() == '0') $(this).css('opacity', '0.3'); }); <% end %>