mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-15 08:11:41 +00:00
crear artículos
This commit is contained in:
parent
067a6144e4
commit
ecfa6c6450
1 changed files with 2 additions and 2 deletions
|
@ -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',
|
||||||
|
|
Loading…
Reference in a new issue