fix for follows display

This commit is contained in:
Kyle Drake 2014-06-12 12:59:26 -07:00
parent 769a122b03
commit b47997a030

View file

@ -12,10 +12,11 @@
</div> </div>
<% end %> <% end %>
<% if (!is_current_site && !site_followings.empty?) || is_current_site %> <% site_follows = site.follows %>
<% if (!is_current_site && !site_follows.empty?) || is_current_site %>
<h3>Followers</h3> <h3>Followers</h3>
<div class="following"> <div class="following">
<% if site_followings.empty? %> <% if site_follows.empty? %>
No followers yet. No followers yet.
<% else %> <% else %>
<% site.follows_dataset.select(:actioning_site_id).all.each do |follow| %> <% site.follows_dataset.select(:actioning_site_id).all.each do |follow| %>