change in field order

This commit is contained in:
Harry Bomrah 2016-01-11 20:37:03 +08:00
parent 065d2607f6
commit b5bc4bb7b2
1 changed files with 2 additions and 2 deletions

View File

@ -42,8 +42,8 @@ class Diploma
def self.get_plugin_datas_to_member(datas)
fields_to_show = [
"school_name",
"country",
"school_name",
"department",
"degree",
"duration"
@ -60,7 +60,7 @@ class Diploma
pd_data = []
fields_to_show.collect do |t|
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)}" }
pd_data << { "data_title" => "<a href='#{OrbitHelper.url_to_plugin_show(p.to_param,'personal_diploma')}' target='_blank'>#{p.send(t)}</a>" }
elsif t == "duration"
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'))