Merge branch '18947-githttpd'
[arvados.git] / apps / workbench / app / views / users / activity.html.erb
index eaf296af095b8afb7b573c5aa86653644a817176..64be1ea4a7ae44eea532af07deb008ad1d5b81d6 100644 (file)
@@ -1,3 +1,7 @@
+<%# 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;
@@ -20,9 +24,9 @@ table#users-activity-table .cell-for-span-Last-month {
   <% end %>
 
   <tr>
-    <th rowspan="2">User</th>
+    <th scope="col" rowspan="2">User</th>
     <% @spans.each do |span, start_at, end_at| %>
-    <th colspan="3" class="cell-for-span-<%= span.gsub ' ','-' %>">
+    <th scope="col" colspan="3" class="cell-for-span-<%= span.gsub ' ','-' %>">
       <%= span %>
       <br />
       <%= start_at.strftime('%b %-d') %>
@@ -33,9 +37,9 @@ table#users-activity-table .cell-for-span-Last-month {
   </tr>
   <tr>
     <% @spans.each do |span, _| %>
-    <th class="cell-for-span-<%= span.gsub ' ','-' %>">Logins</th>
-    <th class="cell-for-span-<%= span.gsub ' ','-' %>">Jobs</th>
-    <th class="cell-for-span-<%= span.gsub ' ','-' %>">Pipelines</th>
+    <th scope="col" class="cell-for-span-<%= span.gsub ' ','-' %>">Logins</th>
+    <th scope="col" class="cell-for-span-<%= span.gsub ' ','-' %>">Jobs</th>
+    <th scope="col" class="cell-for-span-<%= span.gsub ' ','-' %>">Pipelines</th>
     <% end %>
   </tr>
 
@@ -43,11 +47,11 @@ table#users-activity-table .cell-for-span-Last-month {
   <tr>
     <td>
       <small>
-       <% if user.uuid %>
-       <%= link_to_if_arvados_object user, friendly_name: true %>
-       <% else %>
-       <b>Total</b>
-       <% end %>
+        <% if user.uuid %>
+        <%= link_to_if_arvados_object user, friendly_name: true %>
+        <% else %>
+        <b>Total</b>
+        <% end %>
       </small>
     </td>
 
@@ -55,7 +59,7 @@ table#users-activity-table .cell-for-span-Last-month {
     <% ['logins', 'jobs', 'pipeline_instances'].each do |type| %>
     <td class="cell-for-span-<%= span.gsub ' ','-' %>">
       <small>
-       <%= @user_activity[user.uuid][span + " " + type].to_s %>
+        <%= @user_activity[user.uuid][span + " " + type].to_s %>
       </small>
     </td>
     <% end %>
@@ -66,7 +70,7 @@ table#users-activity-table .cell-for-span-Last-month {
 
 <% 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 %>