about summary refs log tree commit diff stats
path: root/app/views/quotes/_quote.html.haml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/quotes/_quote.html.haml')
-rw-r--r--app/views/quotes/_quote.html.haml2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/views/quotes/_quote.html.haml b/app/views/quotes/_quote.html.haml index 2a9fb37..46b0266 100644 --- a/app/views/quotes/_quote.html.haml +++ b/app/views/quotes/_quote.html.haml
@@ -5,6 +5,8 @@
5 %span.quote-rating{ :id => "quote-rating-#{quote.id}" }= "+#{quote.upvotes}/-#{quote.downvotes}" 5 %span.quote-rating{ :id => "quote-rating-#{quote.id}" }= "+#{quote.upvotes}/-#{quote.downvotes}"
6 %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 6 %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
7 %datetime= quote.published_date 7 %datetime= quote.published_date
8 - if user_signed_in? and !quote.new_record?
9 = link_to "Edit", edit_admin_quote_path(quote), :class => "quote-edit-link"
8 %blockquote.quote-body= raw quote_format(h(quote.content)) 10 %blockquote.quote-body= raw quote_format(h(quote.content))
9 - if !quote.new_record? and quote.has_extra? 11 - if !quote.new_record? and quote.has_extra?
10 .quote-footer 12 .quote-footer