1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
%article.quote{ :id => "quote-#{quote.id}" }
%header.quote-header{ :id => "quote-header-#{quote.id}" }
= link_to_unless (quote.new_record? or current_page?(quote)), "\##{quote.id}", quote, :class => "quote-link"
%span.vote-link{ :id => "quote-upvote-link-#{quote.id}" }= link_to_unless (quote.new_record? or quote.already_upvoted?(request.remote_ip)), "Up", upvote_quote_path(quote.id), :remote => true, :rel => "nofollow", :class => "quote-upvote-link", method: :post
%span.quote-rating{ :id => "quote-rating-#{quote.id}" }= "+#{quote.upvotes}/-#{quote.downvotes}"
%span.vote-link{ :id => "quote-downvote-link-#{quote.id}" }= link_to_unless (quote.new_record? or quote.already_downvoted?(request.remote_ip)), "Down", downvote_quote_path(quote.id), :remote => true, :rel => "nofollow", :class => "quote-downvote-link", method: :post
%datetime= quote.published_date
%blockquote.quote-body= raw quote_format(h(quote.content))
- if !quote.new_record? and quote.has_extra?
.quote-footer
- if quote.has_notes?
.quote-notes= auto_link(quote.notes, :link => :urls)
- if quote.has_tags?
%ul.quote-tags
- quote.tags.each do |tag|
%li= link_to tag.name, tag_quotes_path(tag.name)
|