From b5eec3423044f66066d64bd5c9422f40113c543a Mon Sep 17 00:00:00 2001 From: Matt Jankowski Date: Tue, 2 May 2017 14:56:28 -0400 Subject: Add admin area view partials for each record type (#2700) --- app/views/admin/pubsubhubbub/index.html.haml | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) (limited to 'app/views/admin/pubsubhubbub/index.html.haml') diff --git a/app/views/admin/pubsubhubbub/index.html.haml b/app/views/admin/pubsubhubbub/index.html.haml index 852e84f11..066d9e5c6 100644 --- a/app/views/admin/pubsubhubbub/index.html.haml +++ b/app/views/admin/pubsubhubbub/index.html.haml @@ -10,22 +10,6 @@ %th= t('admin.pubsubhubbub.expires_in') %th= t('admin.pubsubhubbub.last_delivery') %tbody - - @subscriptions.each do |subscription| - %tr - %td - %samp= subscription.account.acct - %td - %samp= subscription.callback_url - %td - - if subscription.confirmed? - %i.fa.fa-check - %td{ style: "color: #{subscription.expired? ? 'red' : 'inherit'};" } - = precede subscription.expired? ? '-' : '' do - = time_ago_in_words(subscription.expires_at) - %td - - if subscription.last_successful_delivery_at? - = l subscription.last_successful_delivery_at - - else - %i.fa.fa-times + = render partial: 'subscription', collection: @subscriptions = paginate @subscriptions -- cgit