2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2026-05-12 20:20:25 +01:00

add logout menu to troggle pages

This commit is contained in:
2026-05-11 16:20:06 +01:00
parent 8e65dc0892
commit f4367d0fcf
4 changed files with 27 additions and 19 deletions
+1 -19
View File
@@ -18,26 +18,8 @@
{% now "Y" as now_year %} <!-- the year now as used in header text -->
<div id="header">
<h1>CUCC Expeditions to Austria: 1976 - {{now_year}}</h1>
<div id="editLinks"> {% block loginInfo %}
{% if settings.DEVSERVER %}<b style="color:red; font-size:x-large">RUNNING ON LOCALSERVER</b>&nbsp;&nbsp;{% endif %}
<a href="/">Home</a> |
<a id="cuccLink" href="http://camcaving.uk/">CUCC</a> |
<a id="expoWebsiteLink" href="http://expo.survex.com">expo.survex</a> |
<a id="handbook" href="/handbook/index.htm">Handbook</a> |
{% if user.person %}User:(<a href="{{ user.person.get_absolute_url }}">{{ user.person }}</a>)
| <a href='/accounts/logout/'>Log out</a>
{% elif user.username %}User:{{ user.username }}
| <a href='/accounts/logout/'>Log out</a>
{% else %}
| <a href='/accounts/login/'>Log in</a>
{% endif %}
| <a href='/accounts/register/'>Register</a>
{% endblock%}
{% include 'headpic.html' %}
</div>
</div>
{% block toolbar %}{% include 'troggletoolbar.html' %}{% endblock %}
+4
View File
@@ -18,6 +18,10 @@
{% endif %}
{% now "Y" as now_year %} <!-- the year now as used in header text -->
<br />
{% include 'editlinks.html' %}
{% block toolbar %}{% include 'troggletoolbar.html' %}{% endblock %}
<p>
{% block content %}{% endblock %}
+17
View File
@@ -0,0 +1,17 @@
<div id="editLinks"> {% block loginInfo %}
{% if settings.DEVSERVER %}<b style="color:red; font-size:x-large">RUNNING ON LOCALSERVER</b>&nbsp;&nbsp;{% endif %}
<a href="/">Home</a> |
<a id="cuccLink" href="http://camcaving.uk/">CUCC</a> |
<a id="expoWebsiteLink" href="http://expo.survex.com">expo.survex</a> |
<a id="handbook" href="/handbook/index.htm">Handbook</a> |
{% if user.person %}User:(<a href="{{ user.person.get_absolute_url }}">{{ user.person }}</a>)
| <a href='/accounts/logout/'>Log out</a>
{% elif user.username %}User:{{ user.username }}
| <a href='/accounts/logout/'>Log out</a>
{% else %}
| <a href='/accounts/login/'>Log in</a>
{% endif %}
| <a href='/accounts/register/'>Register</a>
{% endblock%}
</div>
+5
View File
@@ -0,0 +1,5 @@
<div id="header">
<h1>CUCC Expeditions to Austria: 1976 - {{now_year}}</h1>
{% include 'editlinks.html' %}
</div>