#369: updated submenu for user

This commit is contained in:
Vokhmin Alexey V 2014-11-13 03:23:01 +03:00
parent 6bf4576b34
commit 54d2c6f3c3
2 changed files with 13 additions and 11 deletions

View File

@ -1,6 +1,6 @@
class Users::SshKeysController < Users::BaseController
layout 'bootstrap'
skip_before_filter :find_user
before_filter :set_current_user
def index
@ssh_key = SshKey.new
@ -28,4 +28,5 @@ class Users::SshKeysController < Users::BaseController
end
redirect_to ssh_keys_path
end
end

View File

@ -13,14 +13,15 @@
.navbar-brand
= link_to @user.uname, @user
/ Collect the nav links, forms, and other content for toggling
#submenu-navbar-collapse.collapse.navbar-collapse
ul.nav.navbar-nav.left-border
- if @user == current_user
#submenu-navbar-collapse.collapse.navbar-collapse
ul.nav.navbar-nav.left-border
li class=('active' if act == :profile)
= link_to t('layout.users.profile'), profile_settings_path
li class=('active' if act == :private)
= link_to t('layout.users.user_private_settings'), private_settings_path
li class=('active' if act == :notifiers)
= link_to t('layout.users.settings_notifier'), notifiers_settings_path
li class=('active' if contr == :ssh_keys)
= link_to t('ssh_keys'), ssh_keys_path
li class=('active' if act == :profile)
= link_to t('layout.users.profile'), profile_settings_path
li class=('active' if act == :private)
= link_to t('layout.users.user_private_settings'), private_settings_path
li class=('active' if act == :notifiers)
= link_to t('layout.users.settings_notifier'), notifiers_settings_path
li class=('active' if contr == :ssh_keys)
= link_to t('ssh_keys'), ssh_keys_path