summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilip Sargent <philip.sargent@gmail.com>2024-03-14 21:35:58 +0000
committerPhilip Sargent <philip.sargent@gmail.com>2024-03-14 21:35:58 +0000
commit4c8a88d20cf54a70bd000fd8b7c5772118d2309a (patch)
treecc1b48095fb48e430360f0dfbf517a367c12fee3
parentb3490aa52d0a7f36bb2675ee8fb5825550684e97 (diff)
downloadtroggle-4c8a88d20cf54a70bd000fd8b7c5772118d2309a.tar.gz
troggle-4c8a88d20cf54a70bd000fd8b7c5772118d2309a.tar.bz2
troggle-4c8a88d20cf54a70bd000fd8b7c5772118d2309a.zip
more base.html automation
-rw-r--r--templates/base.html15
1 files changed, 10 insertions, 5 deletions
diff --git a/templates/base.html b/templates/base.html
index 113b240..c77134e 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -10,9 +10,14 @@
{% block head %}{% endblock %}
</head>
<body>
+{% if year %}
+{% firstof year as current_year %}
+{% else %}
+{% firstof "2023" as current_year %}
+{% endif %}
<div id="header">
- <h1>CUCC Expeditions to Austria: 1976 - 2022</h1>
+ <h1>CUCC Expeditions to Austria: 1976 - {{current_year}}</h1>
<div id="editLinks"> {% block loginInfo %}
{% if settings.DEVSERVER %}<b style="color:red">RUNNING ON LOCALSERVER</b>{% endif %}
<a href="/">Home</a> |
@@ -51,10 +56,10 @@
<a id="folklink" href="/folk">expoers</a> |
<a id="caversLink" href="{% url "notablepersons" %}">survey lengths</a> |
<a href="{% url "stats" %}">statistics</a> |
- <a href="/survexfilewild/2023">Wild Survex(2023)</a> |
- <a href="/wallets/year/2023">Wallets(2023)</a> |
- <a href="{% url "expedition" 2023 %}">Expo(2023)</a> |
- <a href="{% url "controlpanel" %}">Control panel</a> | {{ user.current_year }} |
+ <a href="/survexfilewild/{{current_year}}">Wild Survex({{current_year}})</a> |
+ <a href="/wallets/year/{{current_year}}">Wallets({{current_year}})</a> |
+ <a href="{% url "expedition" current_year %}">Expo({{current_year}})</a> |
+ <a href="{% url "controlpanel" %}">Control panel</a> |
</div>