<%= story.is_expired? ? "expired" : "" %>">
<% if @user %>
<% else %>
<%= link_to "", login_url, :class => "upvoter" %>
<% end %>
<%= story.upvotes %>
<% if @user %>
<% else %>
<%= link_to "", login_url, :class => "downvoter" %>
<% end %>
<%= link_to story.title, story.url_or_comments_url %>
<% story.taggings.each do |tagging| %>
<%= link_to tagging.tag.tag, tag_url(tagging.tag.tag),
:class => "tag tag_#{tagging.tag.tag}" %>
<% end %>
<%= story.domain %>
by <%= link_to story.user.username, :controller => "u",
:id => story.user.username %>
<%= time_ago_in_words(story.created_at).gsub(/^about /, "") %> ago
<% if story.is_editable_by_user? @user %>
|
<%= link_to "edit", :controller => "stories", :action => "edit",
:id => story.short_id %>
|
<%= link_to "delete", url_for({ :controller => "stories",
:action => "delete", :id => story.short_id }),
:confirm => "Are you sure you want to delete this story?" %>
<% end %>
|
<%= link_to((c = story.comment_count) == 0 ? "discuss" :
"#{c} comment#{c == 1 ? "" : "s"}", story.comments_url) %>