rosa-build/app/views/advisories/_submenu.html.haml

12 lines
461 B
Plaintext
Raw Normal View History

- 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