2012-05-05 18:18:29 +01:00
|
|
|
- content_for :submenu do
|
|
|
|
- act = action_name.to_sym; contr = controller_name.to_sym
|
2014-06-27 12:43:31 +01:00
|
|
|
%nav.navbar.navbar-default.submenu{role: "navigation"}
|
|
|
|
.container-fluid
|
|
|
|
.navbar-header
|
|
|
|
%ul.nav.navbar-nav
|
|
|
|
- if @advisory.present?
|
|
|
|
%li= @advisory.advisory_id
|
|
|
|
- else
|
|
|
|
%li{ class: ('active' if act.in? [:index]) }
|
|
|
|
= link_to t('layout.list'), advisories_path, class: act.in?([:index]) ? 'active' : nil
|