Added 2015 link

This commit is contained in:
2015-04-06 17:07:18 +02:00
parent 0633e56639
commit 64556ecf47
3 changed files with 11 additions and 6 deletions
+3 -3
View File
@@ -20,9 +20,9 @@
} }
</style> </style>
</%def> </%def>
<H2 style="text-align: center;" class="shadow">${edition | n} édition des JM2L</H2> <H2 style="text-align: center;" class="shadow">${edition | n} édition des JM2L en ${year}</H2>
<br> <br>
% if year=='2015': % if year==2015:
<div class="row-fluid"> <div class="row-fluid">
<div class="span4 offset1"> <div class="span4 offset1">
<blockquote> <blockquote>
@@ -49,7 +49,7 @@
</div> </div>
</div> </div>
% else: % else:
<a href="/${year}/le-programme">La grille du programme</a> <a href="/${year}/le-programme">Le programme des évenements ${year}</a>
% endif % endif
<div class="row-fluid"> <div class="row-fluid">
+3 -1
View File
@@ -103,8 +103,10 @@ ${helpers.uploader_js()}
<a class="btn dropdown-toggle" data-toggle="dropdown" href="#"> <a class="btn dropdown-toggle" data-toggle="dropdown" href="#">
Archives&nbsp;<span class="caret"></span></a> Archives&nbsp;<span class="caret"></span></a>
<ul class="dropdown-menu"> <ul class="dropdown-menu">
% for tmpyear in range(2013, 2005, -1): % for tmpyear in range(2015, 2005, -1):
% if tmpyear!=2014:
<li><a href="/year/${tmpyear}">${tmpyear}</a></li> <li><a href="/year/${tmpyear}">${tmpyear}</a></li>
% endif
% endfor % endfor
</ul> </ul>
</div> </div>
+5 -2
View File
@@ -187,11 +187,12 @@ def JSON_TimeLine_Request(request):
"startDate":ev.start_time.strftime('%Y,%m,%d,%H,%M'), "startDate":ev.start_time.strftime('%Y,%m,%d,%H,%M'),
"endDate":ev.end_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"), "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, #"status":ev.event_type,
"asset": { "asset": {
"media": Container, "media": Container,
"credit":"", "credit": ",".join(["%s %s" % (i.prenom, i.nom) for i in ev.intervenants]),
"caption":"" } "caption":"" }
} ) } )
if year=="2015": if year=="2015":
@@ -232,6 +233,8 @@ def index_page(request):
if 2004<year<=CurrentYear: if 2004<year<=CurrentYear:
if year==2006: if year==2006:
return {'year': year, 'edition':u"1<sup>ère</sup>" } return {'year': year, 'edition':u"1<sup>ère</sup>" }
elif year==2015:
return {'year': year, 'edition':u"9<sup>ème</sup>" }
else: else:
edition = year - 2005 edition = year - 2005
return {'year': year, 'edition':u"%d<sup>ème</sup>" % edition } return {'year': year, 'edition':u"%d<sup>ème</sup>" % edition }