forked from tr4ck3ur/jm2l
Fixing year access in menu
This commit is contained in:
@@ -103,10 +103,12 @@ ${helpers.uploader_js()}
|
||||
<div class="nav pull-right">
|
||||
<div class="btn-group">
|
||||
<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">
|
||||
% for tmpyear in range(2017, 2005, -1):
|
||||
% if tmpyear!=2014 and tmpyear!=2016:
|
||||
% for tmpyear in range(2018, 2005, -1):
|
||||
% 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>
|
||||
% endif
|
||||
% endfor
|
||||
|
||||
Reference in New Issue
Block a user