Move admin/pubsubhubbub controller to admin/subscriptions (#3442)
This commit is contained in:
parent
a132332b86
commit
de4681b2be
29 changed files with 58 additions and 48 deletions
16
app/views/admin/subscriptions/_subscription.html.haml
Normal file
16
app/views/admin/subscriptions/_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
|
15
app/views/admin/subscriptions/index.html.haml
Normal file
15
app/views/admin/subscriptions/index.html.haml
Normal file
|
@ -0,0 +1,15 @@
|
|||
- content_for :page_title do
|
||||
= t('admin.subscriptions.title')
|
||||
|
||||
%table.table
|
||||
%thead
|
||||
%tr
|
||||
%th= t('admin.subscriptions.topic')
|
||||
%th= t('admin.subscriptions.callback_url')
|
||||
%th= t('admin.subscriptions.confirmed')
|
||||
%th= t('admin.subscriptions.expires_in')
|
||||
%th= t('admin.subscriptions.last_delivery')
|
||||
%tbody
|
||||
= render @subscriptions
|
||||
|
||||
= paginate @subscriptions
|
Loading…
Add table
Add a link
Reference in a new issue