mirror of
https://0xacab.org/sutty/sutty
synced 2025-02-22 14:01:51 +00:00
fix: los links de idiomas son parte de la nav
This commit is contained in:
parent
21af0bfc4f
commit
3879244a1a
1 changed files with 7 additions and 7 deletions
|
@ -12,8 +12,8 @@
|
||||||
- else
|
- else
|
||||||
= link_to crumb.name, crumb.url, class: 'line-clamp-1'
|
= 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?
|
- if @site&.tienda?
|
||||||
%li.nav-item
|
%li.nav-item
|
||||||
= link_to t('.tienda'), @site.tienda_url,
|
= link_to t('.tienda'), @site.tienda_url,
|
||||||
|
@ -22,8 +22,8 @@
|
||||||
%li.nav-item
|
%li.nav-item
|
||||||
= link_to t('.logout'), main_app.destroy_usuarie_session_path,
|
= link_to t('.logout'), main_app.destroy_usuarie_session_path,
|
||||||
method: :delete, role: 'button', class: 'btn'
|
method: :delete, role: 'button', class: 'btn'
|
||||||
- else
|
- else
|
||||||
- params.permit!
|
- params.permit!
|
||||||
- I18n.available_locales.each do |locale|
|
- I18n.available_locales.each do |locale|
|
||||||
- next if locale == I18n.locale
|
- next if locale == I18n.locale
|
||||||
= link_to t(locale), params.to_h.merge(change_locale_to: locale)
|
%li.nav-item= link_to t(locale), params.to_h.merge(change_locale_to: locale)
|
||||||
|
|
Loading…
Reference in a new issue