about summary refs log tree commit diff
path: root/app/views/admin/instances
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/admin/instances')
-rw-r--r--app/views/admin/instances/_instance.html.haml5
-rw-r--r--app/views/admin/instances/index.html.haml5
2 files changed, 6 insertions, 4 deletions
diff --git a/app/views/admin/instances/_instance.html.haml b/app/views/admin/instances/_instance.html.haml
new file mode 100644
index 000000000..5c6783d06
--- /dev/null
+++ b/app/views/admin/instances/_instance.html.haml
@@ -0,0 +1,5 @@
+%tr
+  %td.domain
+    = instance.domain
+  %td.count
+    = instance.accounts_count
diff --git a/app/views/admin/instances/index.html.haml b/app/views/admin/instances/index.html.haml
index b5ad40ac6..e5955e6bf 100644
--- a/app/views/admin/instances/index.html.haml
+++ b/app/views/admin/instances/index.html.haml
@@ -7,9 +7,6 @@
       %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
+    = render partial: 'instance', collection: @instances
 
 = paginate @instances