X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/7f7cd27d5fc31dc5bbec7f95905fd394a5b317c7..994fa4569b8da43486719ce0da770ab1887b24b9:/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 51d0c2e1e3..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,17 +36,22 @@ 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 %> @@ -54,7 +60,7 @@ table#users-storage-table .cell-for-span-Last-month { <% 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 %>
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 %> - <%= @user_storage[user.uuid][key].to_s %> + + <%= human_readable_bytes_html(@user_storage[user.uuid].fetch(key,0).floor) %> + + <%= @log_date[user.uuid].strftime('%F') %>