diff --git a/app/views/posts/index.haml b/app/views/posts/index.haml index e888625..6ff7ff5 100644 --- a/app/views/posts/index.haml +++ b/app/views/posts/index.haml @@ -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")