Sha256: f494bfcf0822083d178497efed2f1fbbf4d1e5cd430d4a36f920ebbd65aaa601

Contents?: true

Size: 1.55 KB

Versions: 105

Compression:

Stored size: 1.55 KB

Contents

<header class="row">
    <div class="col-sm-5">
        <h3>
            <%= t('Pools') %>
        </h3>
    </div>
    <% if @pools.any? && @total_size > @count.to_i %>
        <div class="col-sm-4">
            <%= erb get_template(:_pagination), locals: { url: "#{root_path}pools" } %>
        </div>
    <% end %>
</header>

<% if @pools.any? %>
<div class="table_container">
    <table class="table table-striped table-bordered table-hover">
        <thead>
            <tr>
                <th><%= t('Created') %></th>
                <th><%= t('PID') %></th>
                <th><%= t('Description') %></th>
                <th><%= t('Type') %></th>
                <th><%= t('Concurrency') %></th>
                <th><%= t('Utilization') %></th>
                <th><%= t('Pending Tasks') %></th>
            </tr>
        </thead>

        <% @pools.each do |pool| %>
        <tr>
            <td><%= safe_relative_time(pool.created_at.to_f) %></th>
            <td><a href="<%= root_path %>pools/<%= pool.pid %>"><%= pool.pid %></a></td>
            <td><%= pool.description %></th>
            <td><%= pool.order.to_s.upcase %></th>
            <td><%= pool.concurrency %></th>
            <td><%= pool.active_count %></th>
            <td><%= pool.pending_count %></th>
        </tr>
        <% end %>
    </table>
</div>
<% end %>

<form action="<%= root_path %>pools/all" method="post">
    <%= csrf_tag %>
    <input class="btn btn-danger btn-xs pull-right flip" type="submit" name="delete" value="<%= t('DeleteAll') %>" data-confirm="<%= t('AreYouSure') %>" />
</form>

Version data entries

105 entries across 105 versions & 1 rubygems

Version Path
canvas_sync-0.22.9 lib/canvas_sync/job_batches/compat/sidekiq/web/views/pools.erb
canvas_sync-0.22.8 lib/canvas_sync/job_batches/compat/sidekiq/web/views/pools.erb
canvas_sync-0.22.6 lib/canvas_sync/job_batches/compat/sidekiq/web/views/pools.erb
canvas_sync-0.22.5 lib/canvas_sync/job_batches/compat/sidekiq/web/views/pools.erb
canvas_sync-0.22.4 lib/canvas_sync/job_batches/compat/sidekiq/web/views/pools.erb
canvas_sync-0.22.3 lib/canvas_sync/job_batches/compat/sidekiq/web/views/pools.erb
canvas_sync-0.22.2 lib/canvas_sync/job_batches/compat/sidekiq/web/views/pools.erb
canvas_sync-0.22.1 lib/canvas_sync/job_batches/compat/sidekiq/web/views/pools.erb
canvas_sync-0.22.0 lib/canvas_sync/job_batches/compat/sidekiq/web/views/pools.erb
canvas_sync-0.22.0.beta8 lib/canvas_sync/job_batches/compat/sidekiq/web/views/pools.erb
canvas_sync-0.22.0.beta7 lib/canvas_sync/job_batches/compat/sidekiq/web/views/pools.erb
canvas_sync-0.22.0.beta6 lib/canvas_sync/job_batches/compat/sidekiq/web/views/pools.erb
canvas_sync-0.22.0.beta5 lib/canvas_sync/job_batches/compat/sidekiq/web/views/pools.erb
canvas_sync-0.22.0.beta4 lib/canvas_sync/job_batches/compat/sidekiq/web/views/pools.erb
canvas_sync-0.22.0.beta3 lib/canvas_sync/job_batches/compat/sidekiq/web/views/pools.erb
canvas_sync-0.22.0.beta2 lib/canvas_sync/job_batches/compat/sidekiq/web/views/pools.erb
canvas_sync-0.22.0.beta1 lib/canvas_sync/job_batches/compat/sidekiq/web/views/pools.erb
canvas_sync-0.21.1 lib/canvas_sync/job_batches/sidekiq/web/views/pools.erb
canvas_sync-0.21.1.beta1 lib/canvas_sync/job_batches/sidekiq/web/views/pools.erb
canvas_sync-0.21.0 lib/canvas_sync/job_batches/sidekiq/web/views/pools.erb