Skip to content
Snippets Groups Projects
Commit b9b78549 authored by Yamagishi Kazutoshi's avatar Yamagishi Kazutoshi Committed by Eugen Rochko
Browse files

Make it possible to check Subscription that has expired (#2712)

parent 438ce580
No related branches found
No related tags found
No related merge requests found
......@@ -11,6 +11,7 @@
%th= t('admin.pubsubhubbub.last_delivery')
%tbody
- @subscriptions.each do |subscription|
- expired = Time.now.utc < subscription.expires_at
%tr
%td
%samp= subscription.account.acct
......@@ -19,7 +20,9 @@
%td
- if subscription.confirmed?
%i.fa.fa-check
%td= distance_of_time_in_words(Time.now, subscription.expires_at)
%td{ style: "color: #{expired ? 'red' : 'inherit'};" }
= precede expired ? '-' : '' do
= time_ago_in_words(subscription.expires_at)
%td
- if subscription.last_successful_delivery_at?
= l subscription.last_successful_delivery_at
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment