Archive: ComponentOwl Rails app, DB backups, go redirect script
This commit is contained in:
12
app/helpers/download_helper.rb
Normal file
12
app/helpers/download_helper.rb
Normal file
@@ -0,0 +1,12 @@
|
||||
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
|
||||
Reference in New Issue
Block a user