Fix link.
This commit is contained in:
parent
b52281f30c
commit
21ed1535aa
|
@ -48,7 +48,10 @@ class Certificate
|
|||
pd_data = []
|
||||
fields_to_show.collect do |t|
|
||||
if t == "title"
|
||||
pd_data << { "data_title" => "<a href='#{OrbitHelper.url_to_plugin_show(p.to_param,'personal_certificate')}' target='_blank'>#{p.send(t)}" }
|
||||
link = OrbitHelper.url_to_plugin_show(p.to_param,'personal_certificate')
|
||||
url_to_plugin_show_blank = OrbitHelper.instance_variable_get(:@url_to_plugin_show_blank)
|
||||
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}") }
|
||||
else
|
||||
pd_data << { "data_title" => p.send(t) }
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue