no mostrar traducciones si hay un solo idioma
This commit is contained in:
parent
a9ee06f1a3
commit
6c33569f12
1 changed files with 5 additions and 4 deletions
|
@ -36,10 +36,11 @@
|
|||
-#
|
||||
TODO: Pensar una interfaz mejor para cuando haya más de tres
|
||||
idiomas
|
||||
.locales
|
||||
- @site.locales.each do |locale|
|
||||
= link_to t("locales.#{locale}.name"), site_posts_path(@site, locale: locale),
|
||||
class: "mr-2 mt-2 mb-2#{locale == @locale ? 'active font-weight-bold' : ''}"
|
||||
- unless @site.locales.length == 1
|
||||
.locales
|
||||
- @site.locales.each do |locale|
|
||||
= link_to t("locales.#{locale}.name"), site_posts_path(@site, locale: locale),
|
||||
class: "mr-2 mt-2 mb-2#{locale == @locale ? 'active font-weight-bold' : ''}"
|
||||
%table.table.table-condensed.table-draggable
|
||||
%tbody
|
||||
- dir = t("locales.#{@locale}.dir")
|
||||
|
|
Loading…
Reference in a new issue