Skip to content

Commit

Permalink
Extract product version, sidekiq#1991
Browse files Browse the repository at this point in the history
  • Loading branch information
mperham committed Jan 21, 2015
1 parent 6f4ca8d commit e03f4ae
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions lib/sidekiq/web_helpers.rb
Expand Up @@ -178,5 +178,9 @@ def environment_title_prefix

"[#{environment.upcase}] " unless environment == "production"
end

def product_version
"Sidekiq v#{Sidekiq::VERSION}"
end
end
end
2 changes: 1 addition & 1 deletion web/views/_footer.erb
Expand Up @@ -3,7 +3,7 @@
<div class="container text-center">
<ul class="nav">
<li>
<p class="navbar-text" style="color:white;">Sidekiq v<%= Sidekiq::VERSION %></p>
<p class="navbar-text" style="color:white;"><%= product_version %></p>
</li>
<li>
<p class="navbar-text">Redis: <%= redis_connection %></p>
Expand Down

0 comments on commit e03f4ae

Please sign in to comment.