Fix link.

This commit is contained in:
BoHung Chiu 2022-12-15 18:16:52 +08:00
parent 649e16793c
commit 947430ef8d
1 changed files with 1 additions and 1 deletions

View File

@ -99,7 +99,7 @@ class Course
link = OrbitHelper.url_to_plugin_show(p.to_param,'personal_course') link = OrbitHelper.url_to_plugin_show(p.to_param,'personal_course')
url_to_plugin_show_blank = OrbitHelper.instance_variable_get(:@url_to_plugin_show_blank) url_to_plugin_show_blank = OrbitHelper.instance_variable_get(:@url_to_plugin_show_blank)
tmp_title = p.title tmp_title = p.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 == "course_category" elsif t == "course_category"
pd_data << {"data_title" => (p.course_category.title rescue "")} pd_data << {"data_title" => (p.course_category.title rescue "")}
else else