闭社主体 forked from https://github.com/tootsuite/mastodon
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
605 B

  1. %tr
  2. %td
  3. = invite.uses
  4. = " / #{invite.max_uses}" unless invite.max_uses.nil?
  5. %td
  6. - if invite.expired?
  7. = t('invites.expired')
  8. - else
  9. - if invite.expires_at.nil?
  10. - else
  11. %time.formatted{ datetime: invite.expires_at.iso8601, title: l(invite.expires_at) }
  12. = l invite.expires_at
  13. %td= table_link_to 'link', public_invite_url(invite_code: invite.code), public_invite_url(invite_code: invite.code)
  14. %td
  15. - if invite.expired? && policy(invite).destroy?
  16. = table_link_to 'times', t('invites.delete'), invite_path(invite), method: :delete