forked from saurabh/personal-journal
parent
3ef7a8d393
commit
d3b6b15931
|
@ -210,9 +210,9 @@ class JournalPaper
|
|||
when "file"
|
||||
files = []
|
||||
self.journal_paper_files.each do |file|
|
||||
url = file.journal_file.url
|
||||
url = (file.journal_file.url rescue "")
|
||||
title = (file.title.blank? ? File.basename(file.journal_file.path) : file.title)
|
||||
files << "<li><a href='#{url}'' target='_blank'>#{title}</li>"
|
||||
files << (url=="" ? "" : "<li><a href='#{url}'' target='_blank'>#{title}</li>")
|
||||
end
|
||||
value = files.join("")
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue