Browse Source

Fixing year access in menu

master
tr4ck3ur des JM2L 6 years ago
parent
commit
c15e529d4e
1 changed files with 5 additions and 3 deletions
  1. +5
    -3
      jm2l/templates/layout.mako

+ 5
- 3
jm2l/templates/layout.mako View File

@@ -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&nbsp;<span class="caret"></span></a>
Édition&nbsp;<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


Loading…
Cancel
Save