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

32 lines
1 KiB
Text
Raw Permalink Normal View History

2019-09-04 16:50:27 +00:00
%nav.navbar
%a.navbar-brand.d-none.d-sm-block{ href: '/' }
2020-01-03 16:47:46 +00:00
= inline_svg_tag 'sutty.svg', class: 'black', aria: true,
2019-09-04 16:50:27 +00:00
title: t('svg.sutty.title'), desc: t('svg.sutty.desc')
2019-09-11 19:29:05 +00:00
- 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
2019-09-11 19:29:05 +00:00
- crumbs.compact.each do |crumb|
- if crumb == crumbs.last
%li.breadcrumb-item.active{ aria: { current: 'page' } }
= crumb
- else
%li.breadcrumb-item= crumb
2019-09-04 16:50:27 +00:00
2019-09-11 19:29:05 +00:00
- if current_usuarie
%ul.navbar-nav
2020-11-11 21:15:58 +00:00
- if @site&.tienda?
%li.nav-item
= link_to t('.tienda'), @site.tienda_url,
role: 'button', class: 'btn'
2019-09-11 19:29:05 +00:00
%li.nav-item
= link_to t('.logout'), destroy_usuarie_session_path,
2019-09-12 16:55:20 +00:00
method: :delete, role: 'button', class: 'btn'