mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-18 16:16:21 +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
|
||||
= 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)
|
||||
|
|
Loading…
Reference in a new issue