Fix link.

This commit is contained in:
BoHung Chiu 2022-12-15 18:16:14 +08:00
parent ec22a5c076
commit 52ab392cf2
1 changed files with 1 additions and 1 deletions

View File

@ -76,7 +76,7 @@ class Activity
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}") }
pd_data << { "data_title" => (url_to_plugin_show_blank ? tmp_title : "<a title=\"#{tmp_title}\" href=\"#{link}\" target=\"_blank\">#{tmp_title}</a>") }
elsif t.include?("date")
pd_data << { "data_title" => (p.send(t).strftime('%Y-%m-%d') rescue p.send(t)) }
else