From ecfa6c6450c4da0a5e0468ed2d541eb9986919a8 Mon Sep 17 00:00:00 2001 From: f Date: Mon, 8 Jul 2019 18:04:39 -0300 Subject: [PATCH] =?UTF-8?q?crear=20art=C3=ADculos?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/posts/_form.haml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/posts/_form.haml b/app/views/posts/_form.haml index 770dd1d4..af49bf25 100644 --- a/app/views/posts/_form.haml +++ b/app/views/posts/_form.haml @@ -31,10 +31,10 @@ = submit_tag t('posts.save_incomplete'), class: 'btn btn-info submit-post-incomplete', name: 'commit_incomplete' .invalid_help.alert.alert-danger.d-none= @site.config.dig('invalid_help') || t('posts.invalid_help') .sending_help.alert.alert-success.d-none= @site.config.dig('sending_help') || t('posts.sending_help') - - if current_user.is_a? Usuaria + - if @site.usuarie? current_user .form-group = label_tag 'post_author', t('posts.author') - - todxs = (@site.usuarias + @site.invitadxs).compact.uniq.map(&:username) + - todxs = (@site.usuarias + @site.invitades).compact.uniq.map(&:email) = select_tag 'post[author]', options_for_select(todxs, @post.author || current_user.email), { class: 'form-control select2',