5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-15 08:11:41 +00:00

crear artículos

This commit is contained in:
f 2019-07-08 18:04:39 -03:00
parent 067a6144e4
commit ecfa6c6450
No known key found for this signature in database
GPG key ID: 2AE5A13E321F953D

View file

@ -31,10 +31,10 @@
= submit_tag t('posts.save_incomplete'), class: 'btn btn-info submit-post-incomplete', name: 'commit_incomplete' = 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') .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') .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 .form-group
= label_tag 'post_author', t('posts.author') = 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]', = select_tag 'post[author]',
options_for_select(todxs, @post.author || current_user.email), options_for_select(todxs, @post.author || current_user.email),
{ class: 'form-control select2', { class: 'form-control select2',