5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-25 02:16:22 +00:00
panel/app/views/layouts/_breadcrumb.haml
2019-07-03 20:25:23 -03:00

17 lines
712 B
Text

%nav{'aria-label': 'breadcrumb', role: 'navigation'}
%ol.breadcrumb
%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')
- 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
- if crumb == crumbs.last
%li.breadcrumb-item.active{'aria-current': 'page'}= crumb
- else
%li.breadcrumb-item= crumb