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

Merge pull request #651 from dennisvdvliet/linear_graphs_dashboard

Dashboard improvements
This commit is contained in:
Mike Perham 2013-01-26 09:27:50 -08:00
commit b968d6cfe0
4 changed files with 8 additions and 0 deletions

View file

@ -49,6 +49,10 @@ module Sidekiq
Sidekiq.redis { |conn| conn.client.location }
end
def namespace
Sidekiq.redis { |conn| conn.namespace.nil? ? 'default' : conn.namespace }
end
def root_path
"#{env['SCRIPT_NAME']}/"
end

View file

@ -69,6 +69,7 @@ var historyGraph = function() {
width: 800,
height: 200,
renderer: 'line',
interpolation: 'linear',
series: [
{
color: "#B1003E",

View file

@ -11,6 +11,7 @@ h5 Real-time
h5
span.history-heading History
a href="#{{current_path}}?days=7" class="history-graph #{{"active" if params[:days] == "7"}}" 1 week
a href="#{{current_path}}" class="history-graph #{{"active" if params[:days].nil? || params[:days] == "30"}}" 1 month
a href="#{{current_path}}?days=90" class="history-graph #{{"active" if params[:days] == "90"}}" 3 month
a href="#{{current_path}}?days=180" class="history-graph #{{"active" if params[:days] == "180"}}" 6 month

View file

@ -24,6 +24,8 @@ html
p.navbar-text Redis: #{location}
li
p.navbar-text Time: #{Time.now.utc.strftime('%H:%M:%S UTC')}
li
p.navbar-text Namespace: #{namespace}
#page
.container