X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/2d9d106c40b83e9a72d431bdb198ed5b8b13550a..14878e2c9e384381b5797c644570d5e19718ed5c:/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..9fd93ff8e2 100644 --- a/apps/workbench/app/views/users/activity.html.erb +++ b/apps/workbench/app/views/users/activity.html.erb @@ -2,8 +2,12 @@ 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 +22,20 @@ table#users-activity-table th { <% @spans.each do |span, start_at, end_at| %> - + <% end %> <% @spans.each do |span, _| %> - - - + + + <% end %> @@ -33,15 +43,19 @@ table#users-activity-table th { <% @spans.each do |span, _| %> <% ['logins', 'jobs', 'pipeline_instances'].each do |type| %> - <% end %> @@ -52,7 +66,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 %>