about summary refs log tree commit diff
path: root/app/views/accounts/following.html.haml
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-09-24 13:40:42 +0200
committerEugen Rochko <eugen@zeonfederated.com>2016-09-24 13:40:42 +0200
commit57583f3fb8a609dab90b2c35f569d8feee655bd7 (patch)
tree4018f72c22ec862c7566d587f326506fc60f3521 /app/views/accounts/following.html.haml
parent95d72b2249e1313182d4ee8b3dbf62666d716585 (diff)
Improve partial rendering and Haml performance (Haml->Hamlit)
Diffstat (limited to 'app/views/accounts/following.html.haml')
-rw-r--r--app/views/accounts/following.html.haml5
1 files changed, 2 insertions, 3 deletions
diff --git a/app/views/accounts/following.html.haml b/app/views/accounts/following.html.haml
index 6e1ba583c..b20ee5318 100644
--- a/app/views/accounts/following.html.haml
+++ b/app/views/accounts/following.html.haml
@@ -6,10 +6,9 @@
 = render partial: 'header'
 
 .accounts-grid
-  - @following.each do |f|
-    = render partial: 'grid_card', locals: { account: f }
-
   - if @following.empty?
     = render partial: 'nothing_here'
+  - else
+    = render partial: 'grid_card', collection: @following, as: :account
 
 = will_paginate @following, pagination_options