1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00
mperham--sidekiq/web/views/_poll.erb

13 lines
468 B
Text
Raw Normal View History

2013-09-23 11:28:26 -04:00
<% if params[:poll] %>
<script>
setInterval("window.location.reload(true)", 2000);
</script>
<% end %>
2013-10-01 00:54:29 -04:00
<% 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 %>
2013-09-23 11:28:26 -04:00
<% end %>