1 <% content_for :css do %>
2 table#users-activity-table th {
5 table#users-activity-table .cell-for-span-This-month,
6 table#users-activity-table .cell-for-span-Last-month {
10 <table class="table table-condensed arv-index" id="users-activity-table">
14 <% @spans.each do |_| %>
17 <col width="<%= (72 / @spans.count / 3).floor %>%" />
23 <th rowspan="2">User</th>
24 <% @spans.each do |span, start_at, end_at| %>
25 <th colspan="3" class="cell-for-span-<%= span.gsub ' ','-' %>">
28 <%= start_at.strftime('%b %-d') %>
30 <%= (end_at-1.second).strftime('%b %-d') %>
35 <% @spans.each do |span, _| %>
36 <th class="cell-for-span-<%= span.gsub ' ','-' %>">Logins</th>
37 <th class="cell-for-span-<%= span.gsub ' ','-' %>">Jobs</th>
38 <th class="cell-for-span-<%= span.gsub ' ','-' %>">Pipelines</th>
42 <% @users.each do |user| %>
47 <%= link_to_if_arvados_object user, friendly_name: true %>
54 <% @spans.each do |span, _| %>
55 <% ['logins', 'jobs', 'pipeline_instances'].each do |type| %>
56 <td class="cell-for-span-<%= span.gsub ' ','-' %>">
58 <%= @user_activity[user.uuid][span + " " + type].to_s %>
67 <% content_for :footer_js do %>
68 $('#users-activity-table td small').each(function(){
69 if ($(this).html().trim() == '0')
70 $(this).css('opacity', '0.3');