3296: add comments to applicaiton.defaults.yml describing the user_profile_form_field...
[arvados.git] / apps / workbench / app / views / users / storage.html.erb
index 99c8883c2a2766e18957976042b0cf2adf7e29cc..7533aa0c42ea5f0cd6ed44552d0ac10133bba559 100644 (file)
@@ -36,29 +36,31 @@ 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">
       <%= human_readable_bytes_html(@user_storage[user.uuid].fetch(key,0).floor) %>
     </td>
     <% end %>
-    <td class="date">
-      <%= @log_date[user.uuid] %>
+    <% if @log_date.key?(user.uuid) %>
+    <td class="date" title="<%= @log_date[user.uuid] %>">
+      <%= @log_date[user.uuid].strftime('%F') %>
     </td>
+    <% end %>
   </tr>
   <% end %>
 </table>
 
 <% 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 %>