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

34 lines
1.2 KiB
Text
Raw 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')
2021-05-09 16:02:09 +00:00
%nav{ aria: { label: t('.title') } }
2021-05-09 16:12:06 +00:00
%ol.breadcrumb.m-0.flex-wrap
2021-05-09 16:02:09 +00:00
- breadcrumb_trail do |crumb|
%li.breadcrumb-item{ class: crumb.current? ? 'active' : '' }
- if crumb.current?
2021-05-09 16:12:06 +00:00
%span.line-clamp-1{ aria: { current: 'page' } }= crumb.name
2019-09-11 19:29:05 +00:00
- else
2021-05-09 16:12:06 +00:00
%span.line-clamp-1= link_to crumb.name, crumb.url
2019-09-04 16:50:27 +00:00
- if @current_usuarie || current_usuarie
2019-09-11 19:29:05 +00:00
%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'
2023-04-25 16:14:29 +00:00
%li.nav-item
= link_to t('.contact_us'), t('.contact_us_href'),
class: 'btn', rel: 'me', target: '_blank'
2019-09-11 19:29:05 +00:00
%li.nav-item
= link_to t('.logout'), main_app.destroy_usuarie_session_path,
2019-09-12 16:55:20 +00:00
method: :delete, role: 'button', class: 'btn'
- else
- params.permit!
2023-03-17 18:32:56 +00:00
- I18n.available_locales.each do |locale|
- next if locale == I18n.locale
= link_to t("switch_locale.#{locale}"), params.to_h.merge(change_locale_to: locale)