diff --git a/app/views/posts/_form.haml b/app/views/posts/_form.haml index 770dd1d..af49bf2 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',