Update honor.rb add title

This commit is contained in:
wmcheng 2018-12-04 22:55:39 +08:00
parent 9eb01a5e8d
commit bcbfd97106
1 changed files with 1 additions and 1 deletions

View File

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