mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
Merge pull request #2647 from jcavalieri/master
footer tweaks, added title and ellipsis to url and namespace
This commit is contained in:
commit
dd600a3a2e
3 changed files with 12 additions and 1 deletions
|
@ -245,5 +245,12 @@ module Sidekiq
|
|||
def product_version
|
||||
"Sidekiq v#{Sidekiq::VERSION}"
|
||||
end
|
||||
|
||||
def redis_connection_and_namespace
|
||||
@redis_connection_and_namespace ||= begin
|
||||
namespace_suffix = namespace.blank? ? '' : "##{namespace}"
|
||||
"#{redis_connection}#{namespace_suffix}"
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -748,3 +748,7 @@ div.interval-slider input {
|
|||
max-width: 350px;
|
||||
}
|
||||
}
|
||||
|
||||
.redis-url {
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
|
|
@ -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_connection_and_namespace %>"><%= redis_connection_and_namespace %></p>
|
||||
</li>
|
||||
<li>
|
||||
<p class="navbar-text"><%= Time.now.utc.strftime('%H:%M:%S UTC') %></p>
|
||||
|
|
Loading…
Reference in a new issue