diff options
-rw-r--r-- | templates/base.html | 15 |
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> |