Update diploma.rb add title

This commit is contained in:
wmcheng 2018-12-04 23:00:09 +08:00
parent 165714f746
commit e8497f8518
1 changed files with 1 additions and 1 deletions

View File

@ -77,7 +77,7 @@ class Diploma
pd_data = [] pd_data = []
fields_to_show.collect do |t| fields_to_show.collect do |t|
if t == "school_name" if t == "school_name"
pd_data << { "data_title" => "<a href='#{OrbitHelper.url_to_plugin_show(p.to_param,'personal_diploma')}' target='_blank'>#{p.send(t)}</a>" } pd_data << { "data_title" => "<a href='#{OrbitHelper.url_to_plugin_show(p.to_param,'personal_diploma')}' title='#{p.send(t)}' target='_blank'>#{p.send(t)}</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'))