about summary refs log tree commit diff
path: root/app/views/admin
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2019-06-22 00:39:09 +0200
committermultiple creatures <dev@multiple-creature.party>2020-02-21 01:04:20 -0600
commit38c7f794f1c9084be792d1b3e7e71a39b36ea090 (patch)
tree74ccdc64518afd0737ac6d714ab3a44f7491e490 /app/views/admin
parentb4d97bc26baff0a9867f1e510a7630dd34b8049d (diff)
port tootsuite#11139 to monsterfork: Remove expensive counters from federation page in admin UI
Diffstat (limited to 'app/views/admin')
-rw-r--r--app/views/admin/instances/index.html.haml13
1 files changed, 7 insertions, 6 deletions
diff --git a/app/views/admin/instances/index.html.haml b/app/views/admin/instances/index.html.haml
index 49800451c..e7afe7841 100644
--- a/app/views/admin/instances/index.html.haml
+++ b/app/views/admin/instances/index.html.haml
@@ -39,17 +39,19 @@
       %h4
         = instance.domain
         %small
-          = t('admin.instances.known_accounts', count: instance.cached_accounts_count)
-
           - if instance.domain_block
+            - first_item = true
             - if !instance.domain_block.noop?
-              &bull;
               = t("admin.domain_blocks.severity.#{instance.domain_block.severity}")
+              - first_item = false
             - if instance.domain_block.reject_media?
-              &bull;
+              - unless first_item
+                &bull;
               = t('admin.domain_blocks.rejecting_media')
+              - first_item = false
             - if instance.domain_block.reject_reports?
-              &bull;
+              - unless first_item
+                &bull;
               = t('admin.domain_blocks.rejecting_reports')
             - if instance.domain_block.reason
               = simple_format(h("Policy reason: #{instance.domain_block.reason}"))
@@ -59,5 +61,4 @@
             = t('admin.accounts.no_limits_imposed')
       - if instance.countable?
         .trends__item__current{ title: t('admin.instances.known_accounts', count: instance.accounts_count) }= number_to_human instance.accounts_count, strip_insignificant_zeros: true
-
 = paginate paginated_instances