%div{:class => "header"} %div{:class => "row"} %span{:class => "info"} %time Date = compact_time(post.created_at) %span{:class => "info"} %strong User = link_to(post.uploader_name, user_path(post.uploader_id)) %span{:class => "info"} %strong Rating = post.rating %span{:class => "info"} %strong Score %span{:id => "score-for-post-#{post.id}"} = post.score
Date <%= compact_time(post.created_at) %> User <%= fast_link_to h(post.author), :controller => "user", :action => "show", :id => post.user_id %> Rating <%= post.pretty_rating %> Score <%= post.score %> <% if @current_user.is_privileged_or_higher? %> (vote <%= link_to_function "up", "Post.vote(1, #{post.id})" %>/<%= link_to_function "down", "Post.vote(-1, #{post.id})" %>) <% end %>
Tags <% post.cached_tags.split(/ /).each do |name| %> <%= fast_link_to h(name.tr("_", " ")), :controller => "post", :action => "index", :tags => name %> <% end %>
<% if post.comments.count > 6 %> <%= link_to_remote "#{pluralize post.comments.size - 6, 'comment'} hidden", :url => {:controller => "comment", :action => "index_hidden", :post_id => post.id} %>. <% end %> <%= render :partial => "threshold_notice", :locals => {:post => post} %>