% 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 %>
User | <% @spans.each do |span, start_at, end_at| %>
<%= span %>
<%= start_at.strftime('%b %-d') %> - <%= (end_at-1.second).strftime('%b %-d') %> |
<% end %>
||
---|---|---|---|
Logins | Jobs | Pipelines | <% end %>|
<% if user.uuid %> <%= link_to_if_arvados_object user, friendly_name: true %> <% else %> Total <% end %> | <% @spans.each do |span, _| %> <% ['logins', 'jobs', 'pipeline_instances'].each do |type| %><%= @user_activity[user.uuid][span + " " + type].to_s %> | <% end %> <% end %>