diff options
author | Matt Jankowski <mjankowski@thoughtbot.com> | 2017-04-18 15:09:07 -0400 |
---|---|---|
committer | Eugen <eugen@zeonfederated.com> | 2017-04-18 21:09:07 +0200 |
commit | 55e150352204bc790345cf81ef02bfcb1d7e0594 (patch) | |
tree | b9c58621d9d6921a1d970a48f8e0713eef790345 /app/views/admin/instances | |
parent | 66d8f99a30f9e6062f1bff37d5115beddce9b55d (diff) |
Instances list in admin (#2095)
* Add admin/instances index action * Add link to instances admin page * View lists instances * Instances, grouped by domain, ordered by count * Use Account.remote scope * Extract method: Account.by_domain_accounts
Diffstat (limited to 'app/views/admin/instances')
-rw-r--r-- | app/views/admin/instances/index.html.haml | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/app/views/admin/instances/index.html.haml b/app/views/admin/instances/index.html.haml new file mode 100644 index 000000000..b5ad40ac6 --- /dev/null +++ b/app/views/admin/instances/index.html.haml @@ -0,0 +1,15 @@ +- content_for :page_title do + = t('admin.instances.title') + +%table.table + %thead + %tr + %th= t('admin.instances.domain_name') + %th= t('admin.instances.account_count') + %tbody + - @instances.each do |instance| + %tr + %td= instance.domain + %td= instance.accounts_count + += paginate @instances |