forked from expo/troggle
more base.html automation
This commit is contained in:
@@ -10,9 +10,14 @@
|
|||||||
{% block head %}{% endblock %}
|
{% block head %}{% endblock %}
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
{% if year %}
|
||||||
|
{% firstof year as current_year %}
|
||||||
|
{% else %}
|
||||||
|
{% firstof "2023" as current_year %}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
<div id="header">
|
<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 %}
|
<div id="editLinks"> {% block loginInfo %}
|
||||||
{% if settings.DEVSERVER %}<b style="color:red">RUNNING ON LOCALSERVER</b>{% endif %}
|
{% if settings.DEVSERVER %}<b style="color:red">RUNNING ON LOCALSERVER</b>{% endif %}
|
||||||
<a href="/">Home</a> |
|
<a href="/">Home</a> |
|
||||||
@@ -51,10 +56,10 @@
|
|||||||
<a id="folklink" href="/folk">expoers</a> |
|
<a id="folklink" href="/folk">expoers</a> |
|
||||||
<a id="caversLink" href="{% url "notablepersons" %}">survey lengths</a> |
|
<a id="caversLink" href="{% url "notablepersons" %}">survey lengths</a> |
|
||||||
<a href="{% url "stats" %}">statistics</a> |
|
<a href="{% url "stats" %}">statistics</a> |
|
||||||
<a href="/survexfilewild/2023">Wild Survex(2023)</a> |
|
<a href="/survexfilewild/{{current_year}}">Wild Survex({{current_year}})</a> |
|
||||||
<a href="/wallets/year/2023">Wallets(2023)</a> |
|
<a href="/wallets/year/{{current_year}}">Wallets({{current_year}})</a> |
|
||||||
<a href="{% url "expedition" 2023 %}">Expo(2023)</a> |
|
<a href="{% url "expedition" current_year %}">Expo({{current_year}})</a> |
|
||||||
<a href="{% url "controlpanel" %}">Control panel</a> | {{ user.current_year }} |
|
<a href="{% url "controlpanel" %}">Control panel</a> |
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user