瀏覽代碼

Fixing year access in menu

master
tr4ck3ur des JM2L 6 年之前
父節點
當前提交
c15e529d4e
共有 1 個文件被更改,包括 5 次插入3 次删除
  1. +5
    -3
      jm2l/templates/layout.mako

+ 5
- 3
jm2l/templates/layout.mako 查看文件

@@ -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…
取消
儲存