forked from saurabh/personal-honor
Fix link.
This commit is contained in:
parent
0654a6a6a7
commit
a5841b820f
|
@ -78,8 +78,9 @@ class Honor
|
||||||
fields_to_show.collect do |t|
|
fields_to_show.collect do |t|
|
||||||
if t == "award_name"
|
if t == "award_name"
|
||||||
link = OrbitHelper.url_to_plugin_show(p.to_param,'personal_honor')
|
link = OrbitHelper.url_to_plugin_show(p.to_param,'personal_honor')
|
||||||
link = (link == "#" ? p.send(t) : "<a href='#{link}' title=\"#{p.send(t)}\" target='_blank'>#{p.send(t)}</a>")
|
url_to_plugin_show_blank = OrbitHelper.instance_variable_get(:@url_to_plugin_show_blank)
|
||||||
pd_data << { "data_title" => link }
|
tmp_title = p.award_name
|
||||||
|
pd_data << { "data_title" => (url_to_plugin_show_blank ? tmp_title : "<a title=\"#{tmp_title}\" href=\"#{link}\" target=\"_blank\">#{tmp_title}") }
|
||||||
elsif t == "honor_type"
|
elsif t == "honor_type"
|
||||||
pd_data << {"data_title" => (p.honor_type.title rescue "")}
|
pd_data << {"data_title" => (p.honor_type.title rescue "")}
|
||||||
elsif t == "award_date"
|
elsif t == "award_date"
|
||||||
|
|
Loading…
Reference in New Issue