forked from expo/troggle
Allow for editing flatpage titles, and made a common uneditable list of links.
This commit is contained in:
@@ -16,11 +16,6 @@
|
||||
</head>
|
||||
<body>
|
||||
{% block content %}{% endblock %}
|
||||
{% block menu %}
|
||||
<ul id="links">
|
||||
<li>Back to <a href="/index.htm">Expedition home page</a></li>
|
||||
<li>Back to <a href="http://cucc.survex.com/">CUCC home page</a></li>
|
||||
</ul>
|
||||
{% endblock %}
|
||||
{% include "menu.html" %}
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
{% autoescape off %}
|
||||
<html>
|
||||
<head>
|
||||
{{ head }}
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
||||
<title>{{ form.title }}</title>
|
||||
<link rel="stylesheet" type="text/css" href="css/main2.css" />
|
||||
</head>
|
||||
<body>
|
||||
{{ form.html }}
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
{% endblock %}
|
||||
{% block content %}
|
||||
<form action="" method="post">{% csrf_token %}
|
||||
{{form}}
|
||||
{{form.as_p}}
|
||||
<p><input type="submit" value="Submit" /></p>
|
||||
</form>
|
||||
{% endblock %}
|
||||
|
||||
@@ -2,9 +2,9 @@
|
||||
<head>
|
||||
{{ head|safe }}
|
||||
</head>
|
||||
<body{% if bodyid %} id="{{ bodyid }}"{% endif %}>
|
||||
<body{% if homepage %} id="homepage"{% endif %}>
|
||||
{{ body|safe }}
|
||||
{% if editable %}<a href="{% url editflatpage path %}">Edit</a>{% endif %}
|
||||
<a href="/troggle">Troggle</a>
|
||||
|
||||
{% include "menu.html" %}
|
||||
</body>
|
||||
</html>
|
||||
|
||||
12
templates/menu.html
Normal file
12
templates/menu.html
Normal file
@@ -0,0 +1,12 @@
|
||||
{% if not homepage %}
|
||||
<ul id="links">
|
||||
<li><a href="/index.htm">Home</a></li>
|
||||
<li><a href="/infodx.htm">Main Index</a></li>
|
||||
<li><a href="/troggle">Troggle</a></li>
|
||||
<li><a href="/areas.htm">Areas</a></li>
|
||||
<li><a href="/indxal.htm">Caves</a></li>
|
||||
<li><a href="/handbook/index.htm">Handbook</a></li>
|
||||
<li><a href="/pubs.htm">Reports</a></li>
|
||||
{% if editable %}<li><a href="{% url editflatpage path %}">Edit</a></li>{% endif %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
Reference in New Issue
Block a user