index.html.haml 730 B

1234567891011121314151617181920212223242526272829
  1. - content_for :page_title do
  2. PubSubHubbub
  3. %table.table
  4. %thead
  5. %tr
  6. %th Topic
  7. %th Callback URL
  8. %th Confirmed
  9. %th Expires in
  10. %th Last delivery
  11. %tbody
  12. - @subscriptions.each do |subscription|
  13. %tr
  14. %td
  15. %samp= subscription.account.acct
  16. %td
  17. %samp= subscription.callback_url
  18. %td
  19. - if subscription.confirmed?
  20. %i.fa.fa-check
  21. %td= distance_of_time_in_words(Time.now, subscription.expires_at)
  22. %td
  23. - if subscription.last_successful_delivery_at.nil?
  24. %i.fa.fa-times
  25. - else
  26. = l subscription.last_successful_delivery_at
  27. = will_paginate @subscriptions, pagination_options