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

listado de autorxs

This commit is contained in:
f 2018-10-20 09:25:03 -03:00
parent cd1c678f60
commit c40538a9f7
No known key found for this signature in database
GPG key ID: F3FDAB97B5F9F7E7

View file

@ -22,7 +22,7 @@
- if current_user.is_a? Usuaria
.form-group
= label_tag 'post_author', t('posts.author')
- todxs = (@site.usuarias + @site.invitadxs).map(&:username)
- todxs = (@site.usuarias + @site.invitadxs).compact.uniq.map(&:username)
= select_tag 'post[author]',
options_for_select(todxs, @post.author || current_user.email),
{ class: 'form-control select2',