Add invite comments (#10465)
This commit is contained in:
parent
9b6a5ed109
commit
cb62a83a71
7 changed files with 17 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue