2014-11-06 22:24:33 +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
|
|
|
|
= link_to @group.uname, @group
|
|
|
|
/ Collect the nav links, forms, and other content for toggling
|
|
|
|
#submenu-navbar-collapse.collapse.navbar-collapse
|
|
|
|
ul.nav.navbar-nav.left-border
|
2015-03-17 22:33:16 +00:00
|
|
|
- if policy(@group).update?
|
2014-11-06 22:24:33 +00:00
|
|
|
li class=('active' if act == :edit && contr == :profile)
|
|
|
|
= link_to t('layout.groups.edit'), edit_group_path(@group)
|
2015-03-14 22:10:04 +00:00
|
|
|
- if policy(@group).manage_members?
|
2014-11-06 22:24:33 +00:00
|
|
|
li class=('active' if act == :index && contr == :members)
|
|
|
|
= link_to t('layout.groups.edit_members'), group_members_path(@group)
|