Sha256: 6b15147d0f69d4a680d3dd7413f3854f478df47f5a7b3710015d6fe0fe36dc65

Contents?: true

Size: 1.81 KB

Versions: 39

Compression:

Stored size: 1.81 KB

Contents

<header class="row">
  <div class="col-sm-5">
    <h3>
    <%= t('Locks') %>
    </h3>
  </div>
  <form action="<%= root_path %>locks" class="form form-inline" method="get">
    <%= csrf_tag %>
    <input name="filter" class="form-control" type="text" value="<%= @filter %>" />
    <button class="btn btn-default" type="submit">
    <%= t('Filter') %>
    </button>
  </form>
  <% if @locks.any? && @total_size > @count %>
  <div class="col-sm-4">
    <%= erb unique_template(:_paging), locals: { url: "#{root_path}locks" } %>
  </div>
  <% end %>
</header>
<% if @locks.any? %>
<div class="table_container">
  <table class="table table-striped table-bordered table-hover">
    <thead>
      <tr>
        <th><%= t('Delete') %></th>
        <th><%= t('Digest') %></th>
        <th><%= t('Lock') %></th>
        <th><%= t('Locks') %></th>
        <th><%= t('Since') %></th>
      </tr>
    </thead>
    <% @locks.each do |lock| %>
    <tbody>
      <tr class="lock-row">
        <td>
          <form action="<%= root_path %>locks/<%= lock.key %>/delete" method="get">
            <%= csrf_tag %>
            <input name="lock" value="<%= h lock.key %>" type="hidden" />
            <input class="btn btn-danger btn-xs" type="submit" name="delete" value="<%= t('Delete') %>" data-confirm="<%= t('AreYouSure') %>" />
          </form>
        </td>
        <td><a href="<%= root_path %>locks/<%= lock.key %>"><%= lock.key %></a></td>
        <td><%= lock.info["lock"] %></td>
        <td><%= lock.locked.count %></td>
        <td><%= safe_relative_time(lock.created_at) %></td>
      </tr>
    </tbody>
    <% end %>
</table>
<form action="<%= root_path %>locks/delete_all" method="get">
  <input class="btn btn-danger btn-xs" type="submit" name="delete_all" value="<%= t('DeleteAll') %>" data-confirm="<%= t('AreYouSure') %>" />
</form>
</div>
<% end %>

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
sidekiq-unique-jobs-7.1.13 lib/sidekiq_unique_jobs/web/views/locks.erb
sidekiq-unique-jobs-7.1.12 lib/sidekiq_unique_jobs/web/views/locks.erb
sidekiq-unique-jobs-7.1.11 lib/sidekiq_unique_jobs/web/views/locks.erb
sidekiq-unique-jobs-7.1.10 lib/sidekiq_unique_jobs/web/views/locks.erb
sidekiq-unique-jobs-7.1.8 lib/sidekiq_unique_jobs/web/views/locks.erb
sidekiq-unique-jobs-7.0.13 lib/sidekiq_unique_jobs/web/views/locks.erb
sidekiq-unique-jobs-7.1.7 lib/sidekiq_unique_jobs/web/views/locks.erb
sidekiq-unique-jobs-7.1.6 lib/sidekiq_unique_jobs/web/views/locks.erb
sidekiq-unique-jobs-7.1.5 lib/sidekiq_unique_jobs/web/views/locks.erb
sidekiq-unique-jobs-7.1.3 lib/sidekiq_unique_jobs/web/views/locks.erb
sidekiq-unique-jobs-7.1.2 lib/sidekiq_unique_jobs/web/views/locks.erb
sidekiq-unique-jobs-7.1.1 lib/sidekiq_unique_jobs/web/views/locks.erb
sidekiq-unique-jobs-7.1.0 lib/sidekiq_unique_jobs/web/views/locks.erb
sidekiq-unique-jobs-7.0.12 lib/sidekiq_unique_jobs/web/views/locks.erb
sidekiq-unique-jobs-7.0.11 lib/sidekiq_unique_jobs/web/views/locks.erb
sidekiq-unique-jobs-7.0.10 lib/sidekiq_unique_jobs/web/views/locks.erb
sidekiq-unique-jobs-7.0.9 lib/sidekiq_unique_jobs/web/views/locks.erb
sidekiq-unique-jobs-7.0.8 lib/sidekiq_unique_jobs/web/views/locks.erb
sidekiq-unique-jobs-7.0.7 lib/sidekiq_unique_jobs/web/views/locks.erb