<% @articles.each do |article| %>

<% if article.featured? %>*<%end%> <%= link_to article.title, action: 'show', id: article.id %> <%= article.author + ', ' + article.created_at.to_formatted_s(:short)%>

<%= simple_format article.body %>
<%= link_to article.votes.where(up: true).size.to_s, article_votes_path(article, :up => true, :sort => params[:sort]), :method => :post, :class => [:plain, :up] %>
<%= link_to article.votes.where(up: false).size.to_s, article_votes_path(article, :up => false, :sort => params[:sort]), :method => :post, :class => [:plain, :down] %>
<%= link_to "Add Comment", new_article_comment_path(article) %>, <% end %>"><%= pluralize(article.comments.count, "comments") %>

<% end %>
<%= link_to 'New Article', :controller => 'articles', :action => "new" %>