Merge branch '11807-yaml-to-json'
[arvados.git] / apps / workbench / app / views / users / storage.html.erb
index b82fd856b07f99711a20662e31dd0aef032f20aa..151ea8bb933515a83a0a53429853704493b7806b 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;
@@ -36,13 +40,13 @@ table#users-storage-table .byte-value {
   <% @users.each do |user| %>
   <tr>
     <td>
+      <% if user.uuid %>
       <small>
-       <% if user.uuid %>
-       <%= link_to_if_arvados_object user, friendly_name: true %>
-       <% else %>
-       <b>Total</b>
-       <% end %>
+        <%= link_to_if_arvados_object user, friendly_name: true %>
       </small>
+      <% 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 %>