Skip to content

Commit

Permalink
Merge pull request sodabrew#91 from lifton/master
Browse files Browse the repository at this point in the history
Add account information option to header
  • Loading branch information
slippycheeze committed Mar 14, 2012
2 parents ed6c231 + cd417f1 commit 7121c82
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/views/shared/_global_nav.html.haml
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
.topbar
.topbar-inner
.container
%ul#global-navigation.navigation
%ul#logo-and-account.navigation
%li#logo
- css = ["background-repeat: no-repeat", "text-indent: -9000px"]
- css << "background-image: url('#{SETTINGS.custom_logo_url}')"
- css << "height: #{SETTINGS.custom_logo_height}"
- css << "width: #{SETTINGS.custom_logo_width}"
%a{:href => root_path, :title => SETTINGS.custom_logo_alt_text, :style => css.join('; ')} Puppet Dashboard
- Registry.each_callback :core, :account_widgets do |callback|
= callback.call self
%ul#global-navigation.navigation
%li#dashboard-version{:class => active_if(request.url == release_notes_url)}
= link_to h(APP_VERSION), APP_VERSION_LINK
%li#navigation-home{:class => active_if(request.url == root_url)}
Expand Down

0 comments on commit 7121c82

Please sign in to comment.