Sha256: ad2efae237e4c8b6d8255bbbab4ef8ec7236b7c7c4bbcff27791597eff1e937e

Contents?: true

Size: 650 Bytes

Versions: 7

Compression:

Stored size: 650 Bytes

Contents

<% if Sidekiq.pro? %>
  <% if queue.paused? %>
    <form action="<%=root_path %>queues/<%= CGI.escape(queue.name) %>/unpause" method="post" style="display: inline">
      <%= csrf_tag %>
      <input class="btn btn-success btn-xs" type="submit" name="unpause" value="<%= t('Unpause') %>" style="background-image: none" />
    </form>
  <% else %>
    <form action="<%=root_path %>queues/<%= CGI.escape(queue.name) %>/pause" method="post" style="display: inline">
      <%= csrf_tag %>
      <input class="btn btn-warning btn-xs" type="submit" name="pause" value="<%= t('Pause') %>" style="background-image: none" />
    </form>
  <% end %>
<% end %>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
sidekiq-web_custom-0.6.0 lib/sidekiq/views/actions/queues/pause.erb
sidekiq-web_custom-0.5.0 lib/sidekiq/views/actions/queues/pause.erb
sidekiq-web_custom-0.4.1 lib/sidekiq/views/actions/queues/pause.erb
sidekiq-web_custom-0.4.0 lib/sidekiq/views/actions/queues/pause.erb
sidekiq-web_custom-0.3.1 lib/sidekiq/views/actions/queues/pause.erb
sidekiq-web_custom-0.3.0 lib/sidekiq/views/actions/queues/pause.erb
sidekiq-web_custom-0.2.0 lib/sidekiq/views/actions/queues/pause.erb