5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-06-17 22:32:23 +00:00

no mostrar traducciones si hay un solo idioma

This commit is contained in:
f 2020-05-26 16:47:16 -03:00
parent a9ee06f1a3
commit 6c33569f12

View file

@ -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")