5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-25 04:56:23 +00:00
panel/app/views/layouts/_breadcrumb.haml

18 lines
712 B
Text
Raw Normal View History

2018-02-05 17:27:12 +00:00
%nav{'aria-label': 'breadcrumb', role: 'navigation'}
%ol.breadcrumb
2019-07-03 23:25:23 +00:00
%li.breadcrumb-item
= link_to destroy_usuarie_session_path, method: :delete,
data: { toggle: 'tooltip' }, title: t('help.logout'),
role: 'button', class: 'btn-text' do
= fa_icon 'sign-out', title: t('help.logout')
2019-02-16 18:33:33 +00:00
- if help = @site.try(:config).try(:dig, 'help')
%li.breadcrumb-item= link_to t('.help'), help, target: '_blank'
- crumbs.compact.each do |crumb|
- if current_user.is_a? Invitadx
- if /\/sites/ =~ crumb
- next
2018-02-05 17:27:12 +00:00
- if crumb == crumbs.last
%li.breadcrumb-item.active{'aria-current': 'page'}= crumb
- else
%li.breadcrumb-item= crumb