2023-04-21 15:33:22 +00:00
|
|
|
%nav.navbar.flex-md-nowrap.px-0
|
2023-04-15 20:03:07 +00:00
|
|
|
%a.navbar-brand.order-0{ 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-08-02 18:58:15 +00:00
|
|
|
|
2023-04-15 20:06:42 +00:00
|
|
|
- if breadcrumbs?
|
|
|
|
%nav.flex-grow-1.order-2.order-md-1{ aria: { label: t('.title') } }
|
|
|
|
%ol.breadcrumb.m-0.flex-wrap
|
|
|
|
- breadcrumb_trail do |crumb|
|
|
|
|
%li.breadcrumb-item{ class: crumb.current? ? 'active' : '' }
|
|
|
|
- if crumb.current?
|
|
|
|
%span.line-clamp-1{ aria: { current: 'page' } }= crumb.name
|
|
|
|
- else
|
|
|
|
= link_to crumb.name, crumb.url, class: 'line-clamp-1'
|
2019-09-04 16:50:27 +00:00
|
|
|
|
2021-08-02 21:31:17 +00:00
|
|
|
- if @current_usuarie || current_usuarie
|
2024-05-15 18:45:21 +00:00
|
|
|
%ul.navbar-nav.order-1.order-md-2
|
2020-11-11 21:15:58 +00:00
|
|
|
- if @site&.tienda?
|
|
|
|
%li.nav-item
|
|
|
|
= link_to t('.tienda'), @site.tienda_url,
|
2024-01-12 17:11:29 +00:00
|
|
|
role: 'button', class: 'btn btn-secondary'
|
2020-11-11 21:15:58 +00:00
|
|
|
|
2023-04-25 16:14:29 +00:00
|
|
|
%li.nav-item
|
|
|
|
= link_to t('.contact_us'), t('.contact_us_href'),
|
2024-01-12 17:11:29 +00:00
|
|
|
class: 'btn btn-secondary', rel: 'me', target: '_blank'
|
2023-04-25 16:14:29 +00:00
|
|
|
|
2019-09-11 19:29:05 +00:00
|
|
|
%li.nav-item
|
2021-08-02 20:54:27 +00:00
|
|
|
= link_to t('.logout'), main_app.destroy_usuarie_session_path,
|
2024-01-12 17:11:29 +00:00
|
|
|
method: :delete, role: 'button', class: 'btn btn-secondary'
|
2024-05-31 13:41:27 +00:00
|
|
|
- else
|
|
|
|
- params.permit!
|
|
|
|
- I18n.available_locales.each do |locale|
|
|
|
|
- next if locale == I18n.locale
|
|
|
|
%li.nav-item
|
|
|
|
= link_to t("switch_locale.#{locale}"), params.to_h.merge(change_locale_to: locale)
|