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/layout.slim
2013-08-01 20:07:26 +10:00

50 lines
1.7 KiB
Text

doctype html
html
head
title= Sidekiq::NAME
meta name="viewport" content="width=device-width,initial-scale=1.0"
link href='#{{root_path}}stylesheets/bootstrap.css' media='screen' rel='stylesheet' type='text/css'
link href='#{{root_path}}stylesheets/application.css' media='screen' rel='stylesheet' type='text/css'
script type="text/javascript" src="#{{root_path}}javascripts/application.js"
script type="text/javascript" src="#{{root_path}}javascripts/locales/jquery.timeago.#{locale}.js"
- if params[:poll]
javascript:
setInterval("window.location.reload(true)", 2000);
body.admin
.navbar.navbar-fixed-top
==slim :_nav
#page
.container
.row
.span12.summary_bar
.row
h4.span10
span.title = t('Status')
== slim :_status
- unless current_path == ''
.span2.pull-right.actions
- if params[:poll]
a#live-poll.btn.btn-block.btn-primary.active href='#{{root_path}}#{{current_path}}' = t('StopPolling')
- else
a#live-poll.btn.btn-block.btn-primary href='#{{root_path}}#{{current_path}}?poll=true' = t('LivePoll')
== slim :_summary
.span12
== yield
.navbar.navbar-fixed-bottom.navbar-inverse
.navbar-inner
.container
ul.nav
li
p.navbar-text style="color:white;" Sidekiq v#{Sidekiq::VERSION}
li
p.navbar-text Redis: #{location}
li
p.navbar-text #{t('Time')}: #{Time.now.utc.strftime('%H:%M:%S UTC')}
- if namespace
li
p.navbar-text #{t('Namespace')}: #{namespace}