From c4ffce7a07bbc865411e71d8a440881c2095c2ca Mon Sep 17 00:00:00 2001 From: Mike Perham Date: Thu, 4 Apr 2013 21:03:09 -0700 Subject: [PATCH] Missed a few --- web/locales/en.yml | 9 +++++++++ web/views/dashboard.slim | 18 +++++++++--------- 2 files changed, 18 insertions(+), 9 deletions(-) diff --git a/web/locales/en.yml b/web/locales/en.yml index 114fb859..dc73cf8c 100644 --- a/web/locales/en.yml +++ b/web/locales/en.yml @@ -47,3 +47,12 @@ en: ScheduledJobs: Scheduled Jobs idle: idle active: active + Version: Version + Connections: Connections + MemoryUsage: Memory Usage + PeakMemoryUsage: Peak Memory Usage + Uptime: Uptime (days) + OneWeek: 1 week + OneMonth: 1 month + ThreeMonths: 3 months + SixMonths: 6 months diff --git a/web/views/dashboard.slim b/web/views/dashboard.slim index 2cb9ca9c..a0a4d23d 100644 --- a/web/views/dashboard.slim +++ b/web/views/dashboard.slim @@ -11,10 +11,10 @@ h5 = t('Realtime') h5 span.history-heading = t('History') - a href="#{{root_path}}?days=7" class="history-graph #{{"active" if params[:days] == "7"}}" 1 week - a href="#{{root_path}}" class="history-graph #{{"active" if params[:days].nil? || params[:days] == "30"}}" 1 month - a href="#{{root_path}}?days=90" class="history-graph #{{"active" if params[:days] == "90"}}" 3 month - a href="#{{root_path}}?days=180" class="history-graph #{{"active" if params[:days] == "180"}}" 6 month + a href="#{{root_path}}?days=7" class="history-graph #{{"active" if params[:days] == "7"}}" = t('OneWeek') + a href="#{{root_path}}" class="history-graph #{{"active" if params[:days].nil? || params[:days] == "30"}}" = t('OneMonth') + a href="#{{root_path}}?days=90" class="history-graph #{{"active" if params[:days] == "90"}}" = t('ThreeMonths') + a href="#{{root_path}}?days=180" class="history-graph #{{"active" if params[:days] == "180"}}" = t('SixMonths') #history data-processed="#{Sidekiq.dump_json(@processed_history)}" data-failed="#{Sidekiq.dump_json(@failed_history)}" data-update-url="#{{root_path}}dashboard/stats" br @@ -23,24 +23,24 @@ h5 Redis - if @redis_info.fetch("redis_version", nil) .stat h3.redis_version= @redis_info.fetch("redis_version") - p Version + p = t('Version') - if @redis_info.fetch("uptime_in_days", nil) .stat h3.uptime_in_days= @redis_info.fetch("uptime_in_days") - p Uptime (days) + p = t('Uptime') - if @redis_info.fetch("connected_clients", nil) .stat h3.connected_clients= @redis_info.fetch("connected_clients") - p Connections + p = t('Connections') - if @redis_info.fetch("used_memory_human", nil) .stat h3.used_memory_human= @redis_info.fetch("used_memory_human") - p Memory Usage + p = t('MemoryUsage') - if @redis_info.fetch("used_memory_peak_human", nil) .stat h3.used_memory_peak_human= @redis_info.fetch("used_memory_peak_human") - p Peak Memory Usage + p = t('PeakMemoryUsage')