Fixing year access in menu
This commit is contained in:
@@ -103,10 +103,12 @@ ${helpers.uploader_js()}
|
|||||||
<div class="nav pull-right">
|
<div class="nav pull-right">
|
||||||
<div class="btn-group">
|
<div class="btn-group">
|
||||||
<a class="btn dropdown-toggle" data-toggle="dropdown" href="#">
|
<a class="btn dropdown-toggle" data-toggle="dropdown" href="#">
|
||||||
Archives <span class="caret"></span></a>
|
Édition <span class="caret"></span></a>
|
||||||
<ul class="dropdown-menu pull-right" style="min-width:0">
|
<ul class="dropdown-menu pull-right" style="min-width:0">
|
||||||
% for tmpyear in range(2017, 2005, -1):
|
% for tmpyear in range(2018, 2005, -1):
|
||||||
% if tmpyear!=2014 and tmpyear!=2016:
|
% if tmpyear==DisplayYear:
|
||||||
|
<li><a style="font-weight: bold;" href="/year/${tmpyear}">${tmpyear}</a></li>
|
||||||
|
% elif tmpyear!=2014 and tmpyear!=2016:
|
||||||
<li><a href="/year/${tmpyear}">${tmpyear}</a></li>
|
<li><a href="/year/${tmpyear}">${tmpyear}</a></li>
|
||||||
% endif
|
% endif
|
||||||
% endfor
|
% endfor
|
||||||
|
|||||||
Reference in New Issue
Block a user