Created
January 3, 2013 20:55
-
-
Save anonymous/4447154 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/vendor/extensions/news_posts/app/views/refinery/news_posts/news_posts/index.html.erb | |
<section id="page"> | |
<div class="container"> | |
<div class="row"> | |
<div class="span12"> | |
<h1>News</h1> | |
<hr> | |
<div class="row"> | |
<div class="span8"> | |
<% @news_posts.each do |news_post| %> | |
<article class="row"> | |
<% if news_post.featured_image %> | |
<div class="span2"> | |
<%= link_to image_fu(news_post.featured_image, '400x', :class => "img-polaroid"), refinery.news_posts_news_post_path(news_post) %> | |
</div> | |
<div class="span6"> | |
<h2><%= link_to news_post.title, refinery.news_posts_news_post_path(news_post) %></h2> | |
<h3><%=raw news_post.date.strftime("%b %e, %Y") %></h3> | |
<%=raw news_post.post %> | |
</div> | |
<% else %> | |
<div class="span8"> | |
<h2><%= link_to news_post.title, refinery.news_posts_news_post_path(news_post) %></h2> | |
<h3><%=raw news_post.date.strftime("%b %e, %Y") %></h3> | |
<%=raw news_post.post %> | |
</div> | |
<% end %> | |
</article> | |
<% end %> | |
</div> | |
<div class="span4"> | |
<h4>Recent Articles</h4> | |
<ul> | |
<% @news_posts.each do |news_post| %> | |
<li><%= link_to news_post.title, refinery.news_posts_news_post_path(news_post) %></li> | |
<% end %> | |
</ul> | |
</div> | |
</div> | |
</div> | |
</div> | |
</div><!-- /#page --> | |
</section><!-- /.container --> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment