mirror of
https://github.com/mastodon/mastodon.git
synced 2024-12-22 18:45:41 +01:00
Make it possible to check Subscription that has expired (#2712)
This commit is contained in:
parent
438ce5809f
commit
b9b78549f3
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue