X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/0e7a1577b51111a9d503f21d40582da62c2dd7b9..1b452d6b3903bac1ccd71b2bb2d9884ae1274f44:/apps/workbench/app/views/users/storage.html.erb diff --git a/apps/workbench/app/views/users/storage.html.erb b/apps/workbench/app/views/users/storage.html.erb index ffa67003cd..7533aa0c42 100644 --- a/apps/workbench/app/views/users/storage.html.erb +++ b/apps/workbench/app/views/users/storage.html.erb @@ -1,15 +1,15 @@ <% content_for :css do %> table#users-storage-table th { overflow-x: hidden; + text-align: center; } -table#users-storage-table .cell-for-span-This-month, -table#users-storage-table .cell-for-span-Last-month { - background: #eee; +table#users-storage-table .byte-value { + text-align: right; } <% end %> - + @@ -20,13 +20,14 @@ table#users-storage-table .cell-for-span-Last-month { + <% 2.times do %> - - <% end %> @@ -35,21 +36,31 @@ table#users-storage-table .cell-for-span-Last-month { <% @users.each do |user| %> + <% [:read_collections_total_bytes, :read_collections_weighted_bytes, :persisted_collections_total_bytes, :persisted_collections_weighted_bytes].each do |key| %> + + <% end %> + <% if @log_date.key?(user.uuid) %> + + <% end %> <% end %>
Collections Persisted Storage Measured At
+ Total (unweighted) + Shared (weighted)
+ <% if user.uuid %> - <% if user.uuid %> - <%= link_to_if_arvados_object user, friendly_name: true %> - <% else %> - Total - <% end %> + <%= link_to_if_arvados_object user, friendly_name: true %> + <% else %> + Total + <% end %> + <%= human_readable_bytes_html(@user_storage[user.uuid].fetch(key,0).floor) %> + + <%= @log_date[user.uuid].strftime('%F') %> +
<% 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 %>