diff --git a/app/views/layouts/_breadcrumb.haml b/app/views/layouts/_breadcrumb.haml index 2d202d48..a9d231d1 100644 --- a/app/views/layouts/_breadcrumb.haml +++ b/app/views/layouts/_breadcrumb.haml @@ -12,8 +12,8 @@ - else = link_to crumb.name, crumb.url, class: 'line-clamp-1' - - if @current_usuarie || current_usuarie - %ul.navbar-nav.order-1.order-md-2 + %ul.navbar-nav.order-1.order-md-2 + - if @current_usuarie || current_usuarie - if @site&.tienda? %li.nav-item = link_to t('.tienda'), @site.tienda_url, @@ -22,8 +22,8 @@ %li.nav-item = link_to t('.logout'), main_app.destroy_usuarie_session_path, method: :delete, role: 'button', class: 'btn' - - else - - params.permit! - - I18n.available_locales.each do |locale| - - next if locale == I18n.locale - = link_to t(locale), params.to_h.merge(change_locale_to: locale) + - else + - params.permit! + - I18n.available_locales.each do |locale| + - next if locale == I18n.locale + %li.nav-item= link_to t(locale), params.to_h.merge(change_locale_to: locale)