about summary refs log tree commit diff stats
path: root/app/views/quotes
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2023-10-22 00:06:48 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2023-10-22 00:06:48 -0400
commit4ecc5d37609c3de8d3b013a738f3704f1e70c61a (patch)
treeedcf3b0f38a40d348b72699e2e905b4b8251ae8d /app/views/quotes
parent98378969dae552c0c190eea922415d35eb22ae1e (diff)
downloadthoughts-4ecc5d37609c3de8d3b013a738f3704f1e70c61a.tar.gz
thoughts-4ecc5d37609c3de8d3b013a738f3704f1e70c61a.tar.bz2
thoughts-4ecc5d37609c3de8d3b013a738f3704f1e70c61a.zip
Audio quotes!
Diffstat (limited to 'app/views/quotes')
-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 46b0266..db6ab8b 100644 --- a/app/views/quotes/_quote.html.haml +++ b/app/views/quotes/_quote.html.haml
@@ -7,6 +7,8 @@
7 %datetime= quote.published_date 7 %datetime= quote.published_date
8 - if user_signed_in? and !quote.new_record? 8 - if user_signed_in? and !quote.new_record?
9 = link_to "Edit", edit_admin_quote_path(quote), :class => "quote-edit-link" 9 = link_to "Edit", edit_admin_quote_path(quote), :class => "quote-edit-link"
10 - if quote.audio.attached?
11 .audioplayer= audio_tag(rails_blob_url(quote.audio), controls: true)
10 %blockquote.quote-body= raw quote_format(h(quote.content)) 12 %blockquote.quote-body= raw quote_format(h(quote.content))
11 - if !quote.new_record? and quote.has_extra? 13 - if !quote.new_record? and quote.has_extra?
12 .quote-footer 14 .quote-footer