Fix link.
This commit is contained in:
parent
b8d1a4d975
commit
ec22a5c076
|
@ -73,7 +73,10 @@ class Activity
|
||||||
pd_data = []
|
pd_data = []
|
||||||
fields_to_show.collect do |t|
|
fields_to_show.collect do |t|
|
||||||
if t == "activity_title"
|
if t == "activity_title"
|
||||||
pd_data << { "data_title" => "<a href='#{OrbitHelper.url_to_plugin_show(p.to_param,'personal_activity')}' title='#{p.send(t)}'>#{p.send(t)}" }
|
link = OrbitHelper.url_to_plugin_show(p.to_param,'personal_activity')
|
||||||
|
url_to_plugin_show_blank = OrbitHelper.instance_variable_get(:@url_to_plugin_show_blank)
|
||||||
|
tmp_title = p.activity_title
|
||||||
|
pd_data << { "data_title" => (url_to_plugin_show_blank ? tmp_title : "<a title=\"#{tmp_title}\" href=\"#{link}\" target=\"_blank\">#{tmp_title}") }
|
||||||
elsif t.include?("date")
|
elsif t.include?("date")
|
||||||
pd_data << { "data_title" => (p.send(t).strftime('%Y-%m-%d') rescue p.send(t)) }
|
pd_data << { "data_title" => (p.send(t).strftime('%Y-%m-%d') rescue p.send(t)) }
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue