Permalink
Browse files

search page complete v2

  • Loading branch information...
1 parent df63100 commit 4e7778004837fb78bbe6e647580ac285aa16f69c @spherop spherop committed Jan 19, 2010
@@ -0,0 +1,17 @@
+.featured_image.span-220
+ = link_to image_tag(news_item.featured_image.url(:medium)), news_item
+.summary.span-390
+ %h3
+ == #{news_item.class.name.upcase}:
+ %strong= link_to news_item.headline, news_item
+ .dateline.small.quiet
+ Posted
+ = news_item.created_at.to_s(:long_date)
+ by
+ = link_to h(news_item.user.full_name), profile_path(news_item.user)
+ in
+ = news_item.network_and_category
+ %p.short_description.alt-spotus
+ = truncate_words(news_item.short_description, 45)
+ = link_to "Read More »", news_item
+
@@ -0,0 +1,17 @@
+<div class="news_item">
+ <%= link_to image_tag(news_item.featured_image.url(:medium), :class => "featured_image"), news_item %>
+ <h5><%= link_to news_item.headline, news_item %></h5>
+ <div class="dateline">
+ <%= short_date(news_item.created_at) %>
+ by
+ <%= link_to h(news_item.user.full_name), profile_path(news_item.user) %>
+ in
+ <%= news_item.network_and_category %>
+ </div>
+ <div class="description">
+ <%= truncate_words(strip_html(news_item.short_description), 45) %>
+ <%= link_to "Read More &raquo;", news_item %>
+ </div>
+</div>
+
+
@@ -0,0 +1,9 @@
+- div_for(pitch) do
+ .block-spacer-negative
+ .box_white
+ #equalize
+ = render :partial => 'news_items/news_item', :object => pitch
+ .span-205.button_news_items
+ = render :partial => "donations/button", :locals => { :news_item => pitch }
+ .clear
+
@@ -0,0 +1,12 @@
+<% div_for(pitch, :class => "clearfix") do %>
+ <%= render :partial => 'news_items/news_item', :object => pitch %>
+ <div class="donater">
+ <%= render :partial => "donations/button", :locals => { :news_item => pitch } %>
+ </div>
+ <div class="author clearfix">
+ <%= link_to image_tag(pitch.user.photo(:thumb), :class => "avatar", :alt => ""), profile_path(pitch.user) %>
+ <%= link_to "By " + truncate(pitch.user.full_name.upcase, :length => 28), profile_path(pitch.user), {:title => pitch.user.full_name.upcase} %>
+ </div>
+<% end %>
+
+

0 comments on commit 4e77780

Please sign in to comment.