Improved admin UI
This commit is contained in:
parent
668013265c
commit
76ec907993
23 changed files with 259 additions and 49 deletions
|
@ -1,9 +1,24 @@
|
|||
%ul.filters
|
||||
%li= link_to 'Local', admin_accounts_path(local: '1')
|
||||
%li= link_to 'Remote', admin_accounts_path(remote: '1')
|
||||
%li= link_to 'Silenced', admin_accounts_path(silenced: '1')
|
||||
%li= link_to 'Suspended', admin_accounts_path(suspended: '1')
|
||||
%li= link_to 'Most recent', admin_accounts_path(recent: '1')
|
||||
- content_for :page_title do
|
||||
Accounts
|
||||
|
||||
.filters
|
||||
.filter-subset
|
||||
%strong Location
|
||||
%ul
|
||||
%li= filter_link_to 'All', local: nil, remote: nil
|
||||
%li= filter_link_to 'Local', local: '1', remote: nil
|
||||
%li= filter_link_to 'Remote', remote: '1', local: nil
|
||||
.filter-subset
|
||||
%strong Moderation
|
||||
%ul
|
||||
%li= filter_link_to 'All', silenced: nil, suspended: nil
|
||||
%li= filter_link_to 'Silenced', silenced: '1'
|
||||
%li= filter_link_to 'Suspended', suspended: '1'
|
||||
.filter-subset
|
||||
%strong Order
|
||||
%ul
|
||||
%li= filter_link_to 'Alphabetic', recent: nil
|
||||
%li= filter_link_to 'Most recent', recent: '1'
|
||||
|
||||
%table.table
|
||||
%thead
|
||||
|
@ -38,6 +53,9 @@
|
|||
%i.fa.fa-check
|
||||
- else
|
||||
%i.fa.fa-times
|
||||
%td= link_to 'Edit', admin_account_path(account.id)
|
||||
%td
|
||||
= table_link_to 'circle', 'Open in web', web_path("accounts/#{account.id}")
|
||||
= table_link_to 'globe', 'Open public', TagManager.instance.url_for(account)
|
||||
= table_link_to 'pencil', 'Edit', admin_account_path(account.id)
|
||||
|
||||
= will_paginate @accounts, pagination_options
|
||||
|
|
14
app/views/admin/domain_blocks/index.html.haml
Normal file
14
app/views/admin/domain_blocks/index.html.haml
Normal file
|
@ -0,0 +1,14 @@
|
|||
- content_for :page_title do
|
||||
Domain Blocks
|
||||
|
||||
%table.table
|
||||
%thead
|
||||
%tr
|
||||
%th Domain
|
||||
%tbody
|
||||
- @blocks.each do |block|
|
||||
%tr
|
||||
%td
|
||||
%samp= block.domain
|
||||
|
||||
= will_paginate @blocks, pagination_options
|
|
@ -1,3 +1,6 @@
|
|||
- content_for :page_title do
|
||||
PubSubHubbub
|
||||
|
||||
%table.table
|
||||
%thead
|
||||
%tr
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue