19215: Adjusts the documentation to reflect recent changes.
[arvados.git] / apps / workbench / app / views / users / storage.html.erb
index e736e78cb7746f43aa627926b24496b9e2de73c9..2a5265c408771fb50444c0423ca04ab47afac7d1 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-storage-table th {
     overflow-x: hidden;
@@ -13,21 +17,21 @@ table#users-storage-table .byte-value {
   </colgroup>
 
   <tr>
-    <th rowspan="2">User</th>
-    <th colspan="2">
+    <th scope="col" rowspan="2">User</th>
+    <th scope="col" colspan="2">
       Collections Read Size
     </th>
-    <th colspan="2">
+    <th scope="col" colspan="2">
       Collections Persisted Storage
     </th>
-    <th rowspan="2">Measured At</th>
+    <th scope="col" rowspan="2">Measured At</th>
   </tr>
   <tr>
     <% 2.times do %>
-    <th class="byte-value">
+    <th scope="col" class="byte-value">
       Total (unweighted)
     </th>
-    <th class="byte-value">
+    <th scope="col" class="byte-value">
       Shared (weighted)
     </th>
     <% end %>
@@ -36,13 +40,13 @@ table#users-storage-table .byte-value {
   <% @users.each do |user| %>
   <tr>
     <td>
-           <% if user.uuid %>
+      <% if user.uuid %>
       <small>
-             <%= link_to_if_arvados_object user, friendly_name: true %>
+        <%= link_to_if_arvados_object user, friendly_name: true %>
       </small>
-           <% else %>
-           <b>Total</b>
-           <% end %>
+      <% else %>
+      <b>Total</b>
+      <% end %>
     </td>
     <% [:read_collections_total_bytes, :read_collections_weighted_bytes, :persisted_collections_total_bytes, :persisted_collections_weighted_bytes].each do |key| %>
     <td class="byte-value">
@@ -60,7 +64,7 @@ table#users-storage-table .byte-value {
 
 <% content_for :footer_js do %>
 $('#users-storage-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 %>