2014-08-01 19:40:42 -04:00
|
|
|
<% if current_path != '' %>
|
2013-10-20 21:54:31 -04:00
|
|
|
<% if params[:poll] %>
|
2014-08-01 19:40:42 -04:00
|
|
|
<script>
|
|
|
|
setInterval("window.location.reload(true)", parseInt(localStorage.timeInterval) || 2000);
|
|
|
|
</script>
|
2013-10-20 21:54:31 -04:00
|
|
|
<a id="live-poll" class="btn btn-primary active" href="<%= root_path %><%= current_path %>"><%= t('StopPolling') %></a>
|
|
|
|
<% else %>
|
2013-10-25 21:52:59 -04:00
|
|
|
<a id="live-poll" class="btn btn-primary" href="<%= root_path %><%= current_path %>?<%= qparams(poll: true) %>"><%= t('LivePoll') %></a>
|
2013-10-20 21:54:31 -04:00
|
|
|
<% end %>
|
2013-09-23 11:28:26 -04:00
|
|
|
<% end %>
|