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

footer tweaks, added title and ellipsis to url and namespace

This commit is contained in:
John Cavalieri 2015-11-06 15:18:50 -06:00
parent 9cc5e8c760
commit 331fc63838
3 changed files with 10 additions and 1 deletions

View file

@ -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

View file

@ -748,3 +748,7 @@ div.interval-slider input {
max-width: 350px;
}
}
.redis-url {
text-overflow: ellipsis;
}

View file

@ -6,7 +6,7 @@
<p class="navbar-text" style="color:white;"><%= product_version %></p>
</li>
<li>
<p class="navbar-text redis-url"><%= redis_connection %><% if namespace %>#<%= namespace %><% end %></p>
<p class="navbar-text redis-url" title="<%= redis_url_and_namespace %>"><%= redis_url_and_namespace %></p>
</li>
<li>
<p class="navbar-text"><%= Time.now.utc.strftime('%H:%M:%S UTC') %></p>