Skip to content

Commit

Permalink
I18n app/views/layouts/_user_options.html.haml
Browse files Browse the repository at this point in the history
  • Loading branch information
martinpovolny committed Jun 3, 2015
1 parent 5bbd5e2 commit c2b484a
Show file tree
Hide file tree
Showing 3 changed files with 14,510 additions and 14,333 deletions.
16 changes: 8 additions & 8 deletions vmdb/app/views/layouts/_user_options.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -8,28 +8,28 @@
%li.disabled
%a{:href => "#"}
Server: #{session[:vmdb_name]}

- if session[:eligible_groups].length > 1
%li.dropdown-submenu
%a{:href => "#"}
Change Group:
= _('Change Group:')
%ul.dropdown-menu
- session[:eligible_groups].each do |group, id|
%li
%a{:title => "Select to change to another Group", :href => "#",
%a{:title => _("Select to change to another Group"), :href => "#",
:onclick => "miqSparkle(true);miqToggleUserOptions(#{id})"}
= id == session[:group] ? "#{group} (Current Group)" : group
= id == session[:group] ? "#{group} (#{_('Current Group')})" : group
- else
%li.disabled
%a{:href => "#"}
= session[:group_description]
%li.divider
%li
%a{:href => "/dashboard/logout", :onclick => 'return miqCheckForChanges()', :title => "Click to Logout"}
Logout
%a{:href => "/dashboard/logout", :onclick => 'return miqCheckForChanges()', :title => _("Click to Logout")}
= _('Logout')

- else
Logging into
= _('Logging into')
= "#{session[:vmdb_name]}"
- if ["login", "authenticate"].include?(controller.action_name)
- if %w(login authenticate).include?(controller.action_name)
= javascript_tag("$$('#navcontainer a').each(function(a){a.href='#'})")

0 comments on commit c2b484a

Please sign in to comment.