Add admin area view partials for each record type (#2700)
This commit is contained in:
committed by
Eugen Rochko
parent
2128682162
commit
b5eec34230
16
app/views/admin/pubsubhubbub/_subscription.html.haml
Normal file
16
app/views/admin/pubsubhubbub/_subscription.html.haml
Normal file
@@ -0,0 +1,16 @@
|
||||
%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
|
@@ -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
|
||||
|
Reference in New Issue
Block a user