logo

mastofe

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

_invite.html.haml (792B)


  1. %tr
  2. %td
  3. .name-tag
  4. = image_tag invite.user.account.avatar.url(:original), alt: '', width: 16, height: 16, class: 'avatar'
  5. %span.username= invite.user.account.username
  6. %td
  7. = invite.uses
  8. = " / #{invite.max_uses}" unless invite.max_uses.nil?
  9. %td
  10. - if invite.expired?
  11. = t('invites.expired')
  12. - else
  13. - if invite.expires_at.nil?
  14. - else
  15. %time.formatted{ datetime: invite.expires_at.iso8601, title: l(invite.expires_at) }
  16. = l invite.expires_at
  17. %td= table_link_to 'link', public_invite_url(invite_code: invite.code), public_invite_url(invite_code: invite.code)
  18. %td
  19. - if !invite.expired? && policy(invite).destroy?
  20. = table_link_to 'times', t('invites.delete'), admin_invite_path(invite), method: :delete