X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/4127b85f2c1af611bb70d5ab469adac126d0a7a4..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 4517b7d57c..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,7 +26,7 @@ table#users-activity-table th { <% @spans.each do |span, start_at, end_at| %> - <% @spans.each do |span, _| %> - - - + + + <% end %> @@ -39,15 +47,19 @@ table#users-activity-table th { <% @spans.each do |span, _| %> <% ['logins', 'jobs', 'pipeline_instances'].each do |type| %> - <% end %> @@ -58,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 %>
<%= start_at.strftime('%b %-d') %> @@ -29,9 +37,9 @@ table#users-activity-table th {
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 %>