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