diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2023-10-21 22:52:41 -0400 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2023-10-21 22:52:41 -0400 |
commit | 20f2479b33bc548c4736cdc1ceffde6e3af3a31d (patch) | |
tree | fcc7416ee5cc9302235fb47b716298d254343433 /app/views/quotes | |
parent | 41155441c9412ab0dba0b62f606cdef5488343f1 (diff) | |
download | thoughts-20f2479b33bc548c4736cdc1ceffde6e3af3a31d.tar.gz thoughts-20f2479b33bc548c4736cdc1ceffde6e3af3a31d.tar.bz2 thoughts-20f2479b33bc548c4736cdc1ceffde6e3af3a31d.zip |
Added quote editing
Diffstat (limited to 'app/views/quotes')
-rw-r--r-- | app/views/quotes/_quote.html.haml | 2 |
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 |