Skip to content

Commit

Permalink
Adding image width and height to make initial page load not suck.
Browse files Browse the repository at this point in the history
  • Loading branch information
futurechimp committed Jun 11, 2011
1 parent 45dcdc5 commit d7177c8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/views/shared/_feed_item.erb
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
<!-- start .feed-item -->
<div class="feed-item <%= feed_item.moderation_status %>">
<% size = feed_item.moderation_status == "featured" ? "300" : "140 "%>
<p class="image">
<%= link_to(
image_tag(feed_item.item_image, {:alt => feed_item.title}),
image_tag(feed_item.item_image,
{:alt => feed_item.title, :height => size, :width => size}),
feed_item.url)
%>
</p>
Expand Down

0 comments on commit d7177c8

Please sign in to comment.