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

Hide live poll button on dashboard page.

This commit is contained in:
Brandon Hilkert 2012-12-12 07:41:22 -05:00
parent 9f16aa3d2f
commit 625a0c10c9

View file

@ -33,12 +33,13 @@ html
span.title Status
== slim :_status
== slim :_summary
.row
.span2
- if params[:poll]
a#live-poll.btn.btn-block.btn-primary.active href='#{{root_path}}#{{current_path}}' Stop Polling
- else
a#live-poll.btn.btn-block.btn-primary href='#{{root_path}}#{{current_path}}?poll=true' Live Poll
- unless current_path.include?("dashboard")
.row
.span2
- if params[:poll]
a#live-poll.btn.btn-block.btn-primary.active href='#{{root_path}}#{{current_path}}' Stop Polling
- else
a#live-poll.btn.btn-block.btn-primary href='#{{root_path}}#{{current_path}}?poll=true' Live Poll
.span10
== yield