Fixed screenshots in following section in sidebar

This commit is contained in:
Victoria Wang 2014-10-21 17:29:17 -07:00
parent a1ba1a0974
commit bb5bb45687

View file

@ -6,7 +6,7 @@
<p>You are not following any sites yet. Add some by <a href="/browse">browsing sites</a> or looking at your tags. <p>You are not following any sites yet. Add some by <a href="/browse">browsing sites</a> or looking at your tags.
<% else %> <% else %>
<% site.followings_dataset.select(:site_id).all.each do |following| %> <% site.followings_dataset.select(:site_id).all.each do |following| %>
<a href="/site/<%= following.site_dataset.select(:username).first.username %>"><img src="<%= site.screenshot_path 'index.html', '50x50' %>" class="avatar"></a> <a href="/site/<%= following.site_dataset.select(:username).first.username %>"><img src="<%= following.site.screenshot_url 'index.html', '50x50' %>" class="avatar"></a>
<% end %> <% end %>
<% end %> <% end %>
</div> </div>
@ -21,7 +21,7 @@
<% else %> <% else %>
<% site.follows_dataset.select(:actioning_site_id).all.each do |follow| %> <% site.follows_dataset.select(:actioning_site_id).all.each do |follow| %>
<% follow_actioning_site = follow.actioning_site_dataset.select(:username).first %> <% follow_actioning_site = follow.actioning_site_dataset.select(:username).first %>
<a href="/site/<%= follow_actioning_site.username %>"><img src="<%= follow_actioning_site.screenshot_path 'index.html', '50x50' %>" class="avatar"></a> <a href="/site/<%= follow_actioning_site.username %>"><img src="<%= follow_actioning_site.screenshot_url 'index.html', '50x50' %>" class="avatar"></a>
<% end %> <% end %>
<% end %> <% end %>
</div> </div>