|
|
@@ -187,11 +187,12 @@ def JSON_TimeLine_Request(request): |
|
|
|
"startDate":ev.start_time.strftime('%Y,%m,%d,%H,%M'), |
|
|
|
"endDate":ev.end_time.strftime('%Y,%m,%d,%H,%M'), |
|
|
|
"text":ev.Salle and (ev.Salle.name or "unk"), |
|
|
|
"tags":ev.Salle and (ev.Salle.name or "unk") , |
|
|
|
#"text":ev.description[:100], |
|
|
|
"tags":ev.Salle and (ev.Salle.salle_id or "unk") , |
|
|
|
#"status":ev.event_type, |
|
|
|
"asset": { |
|
|
|
"media": Container, |
|
|
|
"credit":"", |
|
|
|
"credit": ",".join(["%s %s" % (i.prenom, i.nom) for i in ev.intervenants]), |
|
|
|
"caption":"" } |
|
|
|
} ) |
|
|
|
if year=="2015": |
|
|
@@ -232,6 +233,8 @@ def index_page(request): |
|
|
|
if 2004<year<=CurrentYear: |
|
|
|
if year==2006: |
|
|
|
return {'year': year, 'edition':u"1<sup>ère</sup>" } |
|
|
|
elif year==2015: |
|
|
|
return {'year': year, 'edition':u"9<sup>ème</sup>" } |
|
|
|
else: |
|
|
|
edition = year - 2005 |
|
|
|
return {'year': year, 'edition':u"%d<sup>ème</sup>" % edition } |
|
|
|