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 == '' %>
|
2013-10-20 21:54:31 -04:00
|
|
|
<% if params[:poll] %>
|
|
|
|
<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 %>
|