From 118d39906119801eeffc55cd015c8f6000ba3785 Mon Sep 17 00:00:00 2001 From: f Date: Fri, 23 Feb 2018 16:51:29 -0300 Subject: [PATCH] no hace falta vincular al mismo idioma --- app/views/posts/_form.haml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/views/posts/_form.haml b/app/views/posts/_form.haml index 2336115c..2ac0dd41 100644 --- a/app/views/posts/_form.haml +++ b/app/views/posts/_form.haml @@ -112,7 +112,8 @@ options_for_select(@site.everything_of(:materiales_requeridos), @post.get_front_matter(:materiales_requeridos)), { class: 'form-control select2', multiple: 'multiple' } %small.text-muted.form-text= t('posts.materiales_requeridos_help') - - %w[es en ar].each do |lang| + - I18n.available_locales.map(&:to_s).each do |lang| + - next if lang == @lang .form-group = label_tag 'post_lang', t("posts.lang.#{lang}") = select_tag "post[lang][#{lang}]",