Sha256: dcbe351d7b77193b0a489d481b8ec6b55b8305018f24cb45bb361dd2466b4d6d

Contents?: true

Size: 507 Bytes

Versions: 7

Compression:

Stored size: 507 Bytes

Contents

<% if params[:poll] %>
  <script>
    setInterval("window.location.reload(true)", parseInt(localStorage.timeInterval) || 2000);
  </script>
<% end %>
<% unless current_path == '' %>
  <% if params[:poll] %>
    <a id="live-poll" class="btn btn-primary active" href="<%= root_path %><%= current_path %>"><%= t('StopPolling') %></a>
  <% else %>
    <a id="live-poll" class="btn btn-primary" href="<%= root_path %><%= current_path %>?<%= qparams(poll: true) %>"><%= t('LivePoll') %></a>
  <% end %>
<% end %>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
sidekiq-3.2.1 web/views/_poll.erb
sidekiq-3.2.0 web/views/_poll.erb
sidekiq-3.1.4 web/views/_poll.erb
sidekiq-3.1.3 web/views/_poll.erb
sidekiq-3.1.2 web/views/_poll.erb
sidekiq-3.1.1 web/views/_poll.erb
sidekiq-3.1.0 web/views/_poll.erb