Improve partial rendering and Haml performance (Haml->Hamlit)
This commit is contained in:
@ -5,10 +5,9 @@
|
||||
= render partial: 'header'
|
||||
|
||||
.accounts-grid
|
||||
- @followers.each do |f|
|
||||
= render partial: 'grid_card', locals: { account: f }
|
||||
|
||||
- if @followers.empty?
|
||||
= render partial: 'nothing_here'
|
||||
- else
|
||||
= render partial: 'grid_card', collection: @followers, as: :account
|
||||
|
||||
= will_paginate @followers, pagination_options
|
||||
|
Reference in New Issue
Block a user