1 <% content_for :css do %>
2 table#users-activity-table th {
6 <table class="table table-bordered table-condensed table-fixedlayout" id="users-activity-table">
10 <% @spans.each do |_| %>
13 <col width="<%= (72 / @spans.count / 3).floor %>%" />
19 <th rowspan="2">User</th>
20 <% @spans.each do |span, start_at, end_at| %>
21 <th colspan="3" title="<%= start_at.to_s.sub(/ .*/, '') %> to <%= (end_at-1.second).to_s.sub(/ .*/, '') %>"><%= span %></th>
25 <% @spans.each do |span, _| %>
32 <% @users.each do |user| %>
36 <%= link_to_if_arvados_object user, friendly_name: true %>
40 <% @spans.each do |span, _| %>
41 <% ['logins', 'jobs', 'pipeline_instances'].each do |type| %>
44 <%= @user_activity[user.uuid][span + " " + type].to_s %>
53 <% content_for :footer_js do %>
54 $('#users-activity-table td small').each(function(){
55 if ($(this).html().trim() == '0')
56 $(this).css('opacity', '0.3');