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:
+1
-19
@@ -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> {% 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 %}
|
||||
|
||||
|
||||
|
||||
@@ -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 %}
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
<div id="editLinks"> {% block loginInfo %}
|
||||
{% if settings.DEVSERVER %}<b style="color:red; font-size:x-large">RUNNING ON LOCALSERVER</b> {% 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>
|
||||
@@ -0,0 +1,5 @@
|
||||
<div id="header">
|
||||
<h1>CUCC Expeditions to Austria: 1976 - {{now_year}}</h1>
|
||||
{% include 'editlinks.html' %}
|
||||
|
||||
</div>
|
||||
Reference in New Issue
Block a user