5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-26 10:06:23 +00:00
panel/app/views/layouts/_breadcrumb.haml
f cc4d49b398
quitar el botón de ayuda mutua temporalmente #80
hasta que resolvamos la usabilidad del chat
2020-02-11 14:25:54 -03:00

26 lines
887 B
Text

%nav.navbar
%a.navbar-brand.d-none.d-sm-block{ href: '/' }
= inline_svg_tag 'sutty.svg', class: 'black', aria: true,
title: t('svg.sutty.title'), desc: t('svg.sutty.desc')
- if crumbs
%nav{ aria: { label: t('.title') }, role: 'navigation' }
%ol.breadcrumb
%li.breadcrumb-item
= link_to edit_usuarie_registration_path,
data: { toggle: 'tooltip' },
title: t('help.usuarie.edit') do
= current_usuarie.email
- crumbs.compact.each do |crumb|
- if crumb == crumbs.last
%li.breadcrumb-item.active{ aria: { current: 'page' } }
= crumb
- else
%li.breadcrumb-item= crumb
- if current_usuarie
%ul.navbar-nav
%li.nav-item
= link_to t('.logout'), destroy_usuarie_session_path,
method: :delete, role: 'button', class: 'btn'