Sha256: 10749222ad6319f94ca386caf9de9c000833f52ee739846461334729c920627c

Contents?: true

Size: 514 Bytes

Versions: 3

Compression:

Stored size: 514 Bytes

Contents

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
sidekiq-2.15.2 web/views/_poll.erb
sidekiq-2.15.1 web/views/_poll.erb
sidekiq-2.15.0 web/views/_poll.erb