about summary refs log tree commit diff
path: root/app/views/invites/_invite.html.haml
blob: d794d72e401baff8d1afdf40bc72cc0a8d36c817 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
%tr
  %td
    = invite.uses
    = " / #{invite.max_uses}" unless invite.max_uses.nil?
  %td
    - if invite.expires_at.nil?
      ∞
    - else
      = l invite.expires_at
  %td= table_link_to 'link', public_invite_url(invite_code: invite.code), public_invite_url(invite_code: invite.code)
  %td= table_link_to 'times', t('invites.delete'), invite_path(invite), method: :delete if policy(invite).destroy?