<% if defined?(site) && !params[:event_id] && (params[:page].blank? || params[:page] == '1') %> <% follow_events = site.newest_follows %> <% unless follow_events.empty? %>
New Followers
<% follow_events.first.site.newest_follows.each_with_index do |event,i| %> <% if event.actioning_site.supporter? %><% end %><%= event.actioning_site.username %><% unless follow_events.length == i+1 %>, <% end %> <% end %>
<% end %> <% end %> <% if events.empty? %> <% if current_site && site.owned_by?(parent_site) %>

No feed news yet, you should update your site!

<% else %>

No feed news yet, check back later!

<% end %> <% end %> <% events.each do |event| %> <% if event.profile_comment_id %>
<%== erb :'_news_profile_comment', layout: false, locals: {profile_comment: event.profile_comment, event: event} %> <% elsif event.tip_id %>
<%== erb :'_news_tip', layout: false, locals: {tip: event.tip, event: event} %> <% elsif event.follow_id %> <% actioning_site = event.actioning_site_dataset.select(:id, :username, :title, :domain, :stripe_customer_id, :plan_type).first %> <% next if actioning_site.nil? %> <% event_site = event.site_dataset.select(:id, :username, :title, :domain, :stripe_customer_id, :plan_type).first %>