X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/2d9d106c40b83e9a72d431bdb198ed5b8b13550a..48350f3e8fe2f47eb6ff9f862a8d83fb8a027c6d:/apps/workbench/app/views/users/activity.html.erb diff --git a/apps/workbench/app/views/users/activity.html.erb b/apps/workbench/app/views/users/activity.html.erb index 619081ff6f..9df4b1fce3 100644 --- a/apps/workbench/app/views/users/activity.html.erb +++ b/apps/workbench/app/views/users/activity.html.erb @@ -1,9 +1,17 @@ +<%# 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 %> - +
@@ -18,14 +26,20 @@ table#users-activity-table th { <% @spans.each do |span, start_at, end_at| %> - + <% end %> <% @spans.each do |span, _| %> - - - + + + <% end %> @@ -33,15 +47,19 @@ table#users-activity-table th { <% @spans.each do |span, _| %> <% ['logins', 'jobs', 'pipeline_instances'].each do |type| %> - <% end %> @@ -52,7 +70,7 @@ table#users-activity-table th { <% content_for :footer_js do %> $('#users-activity-table td small').each(function(){ - if ($(this).html().trim() == '0') - $(this).css('opacity', '0.3'); + if ($(this).html().trim() == '0') + $(this).css('opacity', '0.3'); }); <% end %>
User<%= span %> + <%= span %> +
+ <%= start_at.strftime('%b %-d') %> + - + <%= (end_at-1.second).strftime('%b %-d') %> +
LoginsJobsPipelinesLoginsJobsPipelines
- <%= link_to_if_arvados_object user, friendly_name: true %> + <% if user.uuid %> + <%= link_to_if_arvados_object user, friendly_name: true %> + <% else %> + Total + <% end %> + - <%= @user_activity[user.uuid][span + " " + type].to_s %> + <%= @user_activity[user.uuid][span + " " + type].to_s %>