views: add tab_item
and active_tab_item
helpers
This commit is contained in:
parent
6b9d36fbfd
commit
2e762e268e
10 changed files with 96 additions and 84 deletions
7
app/views/shared/_tab_item.html.haml
Normal file
7
app/views/shared/_tab_item.html.haml
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue