forked from saurabh/personal-project
Fix link.
This commit is contained in:
parent
c1c099a6af
commit
fcb1ab6e8d
|
@ -89,8 +89,9 @@ class Project
|
|||
fields_to_show.collect do |t|
|
||||
if t == "project_title"
|
||||
link = OrbitHelper.url_to_plugin_show(p.to_param,'personal_project')
|
||||
link = (link == "#" ? p.send(t) : "<a href='#{link}' title=\"#{p.send(t)}\" target='_blank'>#{p.send(t)}</a>")
|
||||
pd_data << { "data_title" => link }
|
||||
url_to_plugin_show_blank = OrbitHelper.instance_variable_get(:@url_to_plugin_show_blank)
|
||||
tmp_title = p.project_title
|
||||
pd_data << { "data_title" => (url_to_plugin_show_blank ? tmp_title : "<a title=\"#{tmp_title}\" href=\"#{link}\" target=\"_blank\">#{tmp_title}") }
|
||||
elsif t == "period"
|
||||
date = p.duration
|
||||
pd_data << { "data_title" => date }
|
||||
|
|
Loading…
Reference in New Issue