Add invite comments (#10465)

This commit is contained in:
ThibG 2019-08-19 11:40:42 +02:00 committed by Eugen Rochko
parent 9b6a5ed109
commit cb62a83a71
7 changed files with 17 additions and 1 deletions

View file

@ -10,5 +10,8 @@
.fields-group
= f.input :autofollow, wrapper: :with_label
.fields-group
= f.input :comment, wrapper: :with_label, input_html: { maxlength: 420 }
.actions
= f.button :button, t('invites.generate'), type: :submit

View file

@ -20,6 +20,9 @@
%td{ colspan: 2 }
= t('invites.expired')
%td
= invite.comment
%td
- if invite.valid_for_use? && policy(invite).destroy?
= table_link_to 'times', t('invites.delete'), invite_path(invite), method: :delete

View file

@ -15,6 +15,7 @@
%th
%th= t('invites.table.uses')
%th= t('invites.table.expires_at')
%th= t('invites.table.comment')
%th
%tbody
= render @invites