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

12 lines
461 B
Plaintext

- content_for :submenu do
- act = action_name.to_sym; contr = controller_name.to_sym
%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