summaryrefslogtreecommitdiffstats
path: root/templates/base.html
blob: 14817ca52c8fa16775a9a3646f87f2373832f601 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<!DOCTYPE html>
<!-- base.html - this text visible because this template has been included -->
<html lang="en">
<head>
<script>document.interestCohort = null;</script> <!-- Turn off Google FLoC -->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="{{ settings.MEDIA_URL }}css/trog3.css" title="troggle-style"/>
<title>{% block title %}Troggle{% endblock %}</title>

{% block head %}{% endblock %}
</head>
<body>
{% if year %}
{% firstof year as current_year %} 
{% else %}
{% now "Y" as current_year %} <!-- the year now -->
{% endif %}

{% 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%}

   </div>
</div>
{% block toolbar %}{% include 'troggletoolbar.html' %}{% endblock %}	

    
<div id="nav">
  {% block nav %} 
  <!-- Not used any more? -->
  {% endblock %}
</div>
 
<div id="content" >

  	{% block contentheader %}
    {% endblock %}

    <div id="related"> 
        {% block related %}
        {% endblock %}
    </div>
    {% block content %}
    REPLACE : The content
    {% endblock %}
</div>
<div class="footer">
</div>
</body>
</html>