Sha256: 5bbcec57e70ccfa8ba25c1498e4ef2a5db351687c8291bb68685cdd1d40faeb5

Contents?: true

Size: 921 Bytes

Versions: 1

Compression:

Stored size: 921 Bytes

Contents

<table>
  <tr class="head">
    <%= pool_header "Name",         "name" %>
    <%= pool_header "Type",         "type" %>
    <%= pool_header "Retention",    "retain" %>
    <%= pool_header "Volumes",      "vols" %>
    <%= pool_header "Distribution", "vols" %>
  </tr>

  <% @pool.each_with_index do |pool, n| %>
    <tr class="nowrap <%= n.odd? ? "gray" : "blue" %> ">
      <td> <%= link_to pool.name, :action=>"show", :pid=>pool.poolid %> </td>
      <td> <%= pool.pooltype %> </td>
      <td> <%= pool.volretention / 86400 %> days </td>
      <td> <%= pool.numvols %> </td>
      <td>
        <div class="graph">
          <div class="bar" style="width: <%= 100*pool.numvols/@max_vols %>%;">
            <%= 100*pool.numvols/@total_vols %>%
          </div>
        </div>
      </td>
    </tr>
  <% end %>
</table>

<% if BACUVIEW['have_gruff'] %>
  <%= tag "img", :src => "/pool/dist/" + params[:psort] %>
<% end %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bacuview-1.5 app/views/pool/index.rhtml