forked from saurabh/personal-project
parent
c480158946
commit
781c88df05
|
@ -133,8 +133,8 @@ class Project
|
|||
files = []
|
||||
self.project_files.each do |project_file|
|
||||
url = project_file.file.url
|
||||
title = (project_file.title.blank? ? File.basename(project_file.file.path) : project_file.title)
|
||||
files << "<li><a href='#{url}'' target='_blank'>#{title}</li>"
|
||||
title = ((project_file.title.blank? ? File.basename(project_file.file.path) : project_file.title) rescue "")
|
||||
files << (url.nil? ? "" : "<li><a href='#{url}'' target='_blank'>#{title}</li>")
|
||||
end
|
||||
value = files.join("")
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue