demarches-normaliennes/app/views/shared/_tab_item.html.haml
2023-11-16 14:06:05 +01:00

7 lines
318 B
Text

%li{ class: "relative #{(active ? 'active' : nil)}", role: 'presentation' }
- if notification
%span.notifications{ 'aria-label': 'notifications' }
= link_to(url, 'aria-selected': active ? true : nil, class: 'fr-tabs__tab', role: 'tab' ) do
- if badge.present?
%span.badge.fr-mr-1w= badge
= label