1 <%# Copyright (C) The Arvados Authors. All rights reserved.
3 SPDX-License-Identifier: AGPL-3.0 %>
5 <% content_for :css do %>
6 table#users-storage-table th {
10 table#users-storage-table .byte-value {
14 <table class="table table-condensed arv-index" id="users-storage-table">
20 <th rowspan="2">User</th>
25 Collections Persisted Storage
27 <th rowspan="2">Measured At</th>
31 <th class="byte-value">
34 <th class="byte-value">
40 <% @users.each do |user| %>
45 <%= link_to_if_arvados_object user, friendly_name: true %>
51 <% [:read_collections_total_bytes, :read_collections_weighted_bytes, :persisted_collections_total_bytes, :persisted_collections_weighted_bytes].each do |key| %>
52 <td class="byte-value">
53 <%= human_readable_bytes_html(@user_storage[user.uuid].fetch(key,0).floor) %>
56 <% if @log_date.key?(user.uuid) %>
57 <td class="date" title="<%= @log_date[user.uuid] %>">
58 <%= @log_date[user.uuid].strftime('%F') %>
65 <% content_for :footer_js do %>
66 $('#users-storage-table td small').each(function(){
67 if ($(this).html().trim() == '0')
68 $(this).css('opacity', '0.3');