13 lines
395 B
Ruby
13 lines
395 B
Ruby
|
|
module DownloadHelper
|
||
|
|
|
||
|
|
def quote(testimonial)
|
||
|
|
text = @testimonial ? @testimonial.text : t('txt.download_page.quote_text')
|
||
|
|
author = @testimonial ? @testimonial.author : t('txt.download_page.quote_author')
|
||
|
|
content = ['<div class="quote">']
|
||
|
|
content << "<blockquote>#{text}</blockquote>"
|
||
|
|
content << "<em>#{author}</em>"
|
||
|
|
content << "</div>"
|
||
|
|
content.join("\n")
|
||
|
|
end
|
||
|
|
end
|