_subscription.html.haml 703 B

123456789101112131415161718
  1. %tr
  2. %td
  3. %samp= subscription.account.acct
  4. %td
  5. %samp= subscription.callback_url
  6. %td
  7. - if subscription.confirmed?
  8. %i.fa.fa-check
  9. %td{ style: "color: #{subscription.expired? ? 'red' : 'inherit'};" }
  10. %time.time-ago{ datetime: subscription.expires_at.iso8601, title: l(subscription.expires_at) }
  11. = precede subscription.expired? ? '-' : '' do
  12. = time_ago_in_words(subscription.expires_at)
  13. %td
  14. - if subscription.last_successful_delivery_at?
  15. %time.formatted{ datetime: subscription.last_successful_delivery_at.iso8601, title: l(subscription.last_successful_delivery_at) }
  16. = l subscription.last_successful_delivery_at
  17. - else
  18. %i.fa.fa-times