about summary refs log tree commit diff
path: root/app/views/admin
diff options
context:
space:
mode:
authorYamagishi Kazutoshi <ykzts@desire.sh>2017-05-02 22:52:30 +0900
committerEugen Rochko <eugen@zeonfederated.com>2017-05-02 15:52:30 +0200
commitb9b78549f362b63ebb788a570fb647c570af2249 (patch)
tree438480f0c9ef4e03b115146fa4e059d9ad7f504d /app/views/admin
parent438ce5809f562c49569e26badd0376925f1a5f12 (diff)
Make it possible to check Subscription that has expired (#2712)
Diffstat (limited to 'app/views/admin')
-rw-r--r--app/views/admin/pubsubhubbub/index.html.haml5
1 files changed, 4 insertions, 1 deletions
diff --git a/app/views/admin/pubsubhubbub/index.html.haml b/app/views/admin/pubsubhubbub/index.html.haml
index 6b1d1ba4a..60a0b40b0 100644
--- a/app/views/admin/pubsubhubbub/index.html.haml
+++ b/app/views/admin/pubsubhubbub/index.html.haml
@@ -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