<%# 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; text-align: center; } table#users-storage-table .byte-value { text-align: right; } <% end %> <% 2.times do %> <% end %> <% @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 %>
User Collections Read Size Collections Persisted Storage Measured At
Total (unweighted) Shared (weighted)
<% if user.uuid %> <%= 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'); }); <% end %>