forked from saurabh/personal-project
small date format fix for member show page to duration
This commit is contained in:
parent
210a200f19
commit
abe5df7f13
|
@ -88,13 +88,7 @@ class Project
|
|||
if t == "project_title"
|
||||
pd_data << { "data_title" => "<a href='#{OrbitHelper.url_to_plugin_show(p.to_param,'personal_project')}' target='_blank'>#{p.send(t)}" }
|
||||
elsif t == "period"
|
||||
|
||||
if !p.send('period_start_date').nil? or !p.send('period_end_date').nil?
|
||||
date = (p.send('period_start_date').strftime('%Y.%m.%d') rescue "")+' ~ '+(p.send('period_end_date').strftime('%Y.%m.%d') rescue I18n.t('personal_project.up_to_today'))
|
||||
else
|
||||
date = ""
|
||||
end
|
||||
|
||||
date = p.duration
|
||||
pd_data << { "data_title" => date }
|
||||
elsif t == "project_type"
|
||||
pd_data << {"data_title" => (p.project_type.title rescue "")}
|
||||
|
|
Loading…
Reference in New Issue