forked from saurabh/personal-diploma
Fix link.
This commit is contained in:
parent
d7347aa546
commit
c4fed710b2
|
@ -82,7 +82,7 @@ class Diploma
|
||||||
link = OrbitHelper.url_to_plugin_show(p.to_param,'personal_diploma')
|
link = OrbitHelper.url_to_plugin_show(p.to_param,'personal_diploma')
|
||||||
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.school_name
|
tmp_title = p.school_name
|
||||||
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 == "duration"
|
elsif t == "duration"
|
||||||
if !p.send('start_date').nil? or !p.send('end_date').nil?
|
if !p.send('start_date').nil? or !p.send('end_date').nil?
|
||||||
date = (p.send('start_date').strftime('%Y.%m') rescue "")+' ~ '+(p.send('end_date').strftime('%Y.%m') rescue I18n.t('personal_diploma.up_to_today'))
|
date = (p.send('start_date').strftime('%Y.%m') rescue "")+' ~ '+(p.send('end_date').strftime('%Y.%m') rescue I18n.t('personal_diploma.up_to_today'))
|
||||||
|
|
Loading…
Reference in New Issue