2014-11-06 22:00:23 +00:00
|
|
|
- content_for :submenu do
|
|
|
|
- act = action_name.to_sym
|
|
|
|
- contr = controller_name.to_sym
|
|
|
|
nav.navbar.navbar-default role='navigation'
|
|
|
|
.container-fluid
|
|
|
|
/ Brand and toggle get grouped for better mobile display
|
|
|
|
.navbar-header
|
|
|
|
button.navbar-toggle data-target='#submenu-navbar-collapse' data-toggle='collapse' type='button'
|
|
|
|
span.sr-only Toggle navigation
|
|
|
|
span.icon-bar
|
|
|
|
span.icon-bar
|
|
|
|
span.icon-bar
|
|
|
|
.navbar-brand
|
2014-11-13 00:17:22 +00:00
|
|
|
= link_to @user.uname, @user
|
2014-11-06 22:00:23 +00:00
|
|
|
/ Collect the nav links, forms, and other content for toggling
|
2014-11-13 00:23:01 +00:00
|
|
|
- if @user == current_user
|
|
|
|
#submenu-navbar-collapse.collapse.navbar-collapse
|
|
|
|
ul.nav.navbar-nav.left-border
|
2014-11-06 22:00:23 +00:00
|
|
|
|
2014-11-13 00:23:01 +00:00
|
|
|
li class=('active' if act == :profile)
|
2015-02-09 22:14:11 +00:00
|
|
|
a href=profile_settings_path
|
|
|
|
i.fa.fa-user>
|
|
|
|
= t('layout.users.profile')
|
2014-11-13 00:23:01 +00:00
|
|
|
li class=('active' if act == :private)
|
2015-02-09 22:14:11 +00:00
|
|
|
a href=private_settings_path
|
|
|
|
i.fa.fa-cog>
|
|
|
|
= t('layout.users.user_private_settings')
|
2014-11-13 00:23:01 +00:00
|
|
|
li class=('active' if act == :notifiers)
|
2015-02-09 22:14:11 +00:00
|
|
|
a href=notifiers_settings_path
|
|
|
|
i.fa.fa-inbox>
|
|
|
|
= t('layout.users.settings_notifier')
|
2014-11-13 00:23:01 +00:00
|
|
|
li class=('active' if contr == :ssh_keys)
|
2015-02-09 22:14:11 +00:00
|
|
|
a href=ssh_keys_path
|
|
|
|
i.fa.fa-key>
|
|
|
|
= t('ssh_keys')
|