views: add tab_item and active_tab_item helpers

This commit is contained in:
Pierre de La Morinerie 2018-08-16 14:30:55 +00:00
parent 6b9d36fbfd
commit 2e762e268e
10 changed files with 96 additions and 84 deletions

View file

@ -0,0 +1,7 @@
%li{ class: (active ? 'active' : nil) }
- if notification
%span.notifications{ 'aria-label': 'notifications' }
= link_to(url) do
= label
- if badge.present?
%span.badge= badge