about summary refs log tree commit diff
path: root/app/views/admin/instances
diff options
context:
space:
mode:
authorMatt Jankowski <mjankowski@thoughtbot.com>2017-05-02 14:56:28 -0400
committerEugen Rochko <eugen@zeonfederated.com>2017-05-02 20:56:28 +0200
commitb5eec3423044f66066d64bd5c9422f40113c543a (patch)
tree253ae02c771888fe7c84d32383bc838fb626a45c /app/views/admin/instances
parent212868216230120b63b162ab40cf271deadadd63 (diff)
Add admin area view partials for each record type (#2700)
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