logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe git clone https://hacktivis.me/git/mastofe.git

_invite.html.haml (605B)


  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