From 331fc63838ab8f15114b731b17b0f4352d55509d Mon Sep 17 00:00:00 2001 From: John Cavalieri Date: Fri, 6 Nov 2015 15:18:50 -0600 Subject: [PATCH] footer tweaks, added title and ellipsis to url and namespace --- lib/sidekiq/web_helpers.rb | 5 +++++ web/assets/stylesheets/application.css | 4 ++++ web/views/_footer.erb | 2 +- 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/lib/sidekiq/web_helpers.rb b/lib/sidekiq/web_helpers.rb index 28932738..7aac926d 100644 --- a/lib/sidekiq/web_helpers.rb +++ b/lib/sidekiq/web_helpers.rb @@ -245,5 +245,10 @@ module Sidekiq def product_version "Sidekiq v#{Sidekiq::VERSION}" end + + def redis_url_and_namespace + namespace_suffix = namespace.blank? ? '' : "##{namespace}" + "#{redis_connection}#{namespace_suffix}" + end end end diff --git a/web/assets/stylesheets/application.css b/web/assets/stylesheets/application.css index ec42ab9f..64e8e60e 100755 --- a/web/assets/stylesheets/application.css +++ b/web/assets/stylesheets/application.css @@ -748,3 +748,7 @@ div.interval-slider input { max-width: 350px; } } + +.redis-url { + text-overflow: ellipsis; +} diff --git a/web/views/_footer.erb b/web/views/_footer.erb index d1c9e076..f1d28b7b 100644 --- a/web/views/_footer.erb +++ b/web/views/_footer.erb @@ -6,7 +6,7 @@
  • - +