forked from expo/troggle
Modification to templates to make them more suitable on a stand alone website.
This commit is contained in:
parent
52299fb6fd
commit
973d05f9fb
@ -106,15 +106,17 @@
|
|||||||
<h2>References</h2>
|
<h2>References</h2>
|
||||||
{{ cave.references|safe }}
|
{{ cave.references|safe }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
{% if not local %}
|
||||||
{% if cave.get_QMs %}
|
{% if cave.get_QMs %}
|
||||||
<h2>QMs</h2>
|
<h2>QMs</h2>
|
||||||
<a href="{% url 'caveQMs' cave_id|safe %}">QM page for {{ cave_id|safe }}</a>
|
<a href="{% url 'caveQMs' cave_id|safe %}">QM page for {{ cave_id|safe }}</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
<h2>Scanned survey notes</h2>
|
||||||
<h2>Scanned survey notes</h2>
|
<a href="{% url "cavewallets" cave_id %}">{{ cave_id|safe }}</a>
|
||||||
<a href="{% url "cavewallets" cave_id %}">{{ cave_id|safe }}</a>
|
{% endif %}
|
||||||
|
|
||||||
{% if cave.notes %}
|
{% if cave.notes %}
|
||||||
<h2>Notes</h2>
|
<h2>Notes</h2>
|
||||||
{{ cave.notes|safe }}
|
{{ cave.notes|safe }}
|
||||||
@ -130,7 +132,7 @@
|
|||||||
{{ ent.entrance_letter|safe }}
|
{{ ent.entrance_letter|safe }}
|
||||||
{% if ent.entrance.name %}
|
{% if ent.entrance.name %}
|
||||||
{{ ent.entrance.name|safe }}
|
{{ ent.entrance.name|safe }}
|
||||||
{% endif %}<a class="editlink" href="{% url "editentrance" ent.entrance.url_parent cave.slug ent.entrance.slug %}">Edit</a>
|
{% endif %}<a class="editlink" href="{% if local %}https://expo.survex.com{% endif %}{% url "editentrance" ent.entrance.url_parent cave.slug ent.entrance.slug %}">Edit</a>
|
||||||
<dl>
|
<dl>
|
||||||
{% if ent.entrance.marking %}
|
{% if ent.entrance.marking %}
|
||||||
<dt>Marking</dt><dd>{{ ent.entrance.marking_val|safe }}</dd>
|
<dt>Marking</dt><dd>{{ ent.entrance.marking_val|safe }}</dd>
|
||||||
@ -190,7 +192,7 @@
|
|||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
{% endif %}</p>
|
{% endif %}</p>
|
||||||
<a class="editlink" href="{% url "newentrance" cave.url_parent cave.slug %}">New Entrance</a>
|
<a class="editlink" href="{% if local %}https://expo.survex.com{% endif %}{% url "newentrance" cave.url_parent cave.slug %}">New Entrance</a>
|
||||||
</div>
|
</div>
|
||||||
<h2>Survex File(s)</h2>
|
<h2>Survex File(s)</h2>
|
||||||
All <a href="/survexfile/{{cave.kataster_number}}">survexfiles</a> for this cave <br />
|
All <a href="/survexfile/{{cave.kataster_number}}">survexfiles</a> for this cave <br />
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<dl>
|
<dl>
|
||||||
<a href="/{{entrance.cavelist.0.url }}">Cave: {{entrance.cavelist.0.name }}</a>
|
<a href="/{{entrance.cavelist.0.url }}">Cave: {{entrance.cavelist.0 }}</a>
|
||||||
{% if entrance.marking %}
|
{% if entrance.marking %}
|
||||||
<dt>Marking</dt><dd>{{ entrance.marking_val|safe }}</dd>
|
<dt>Marking</dt><dd>{{ entrance.marking_val|safe }}</dd>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -42,8 +42,8 @@
|
|||||||
<li><form name=P method=get action="/search" target="_top">
|
<li><form name=P method=get action="/search" target="_top">
|
||||||
<input id="omega-autofocus" type=search name=P size=8 autofocus>
|
<input id="omega-autofocus" type=search name=P size=8 autofocus>
|
||||||
<input type=submit value="Search"></form></li>
|
<input type=submit value="Search"></form></li>
|
||||||
{% if editable %}<li><a href="{% url "editexpopage" path %}" class="editlink"><strong>Edit this page</strong></a></li>{% endif %}
|
{% if editable %}<li><a href="{% if local %}https://expo.survex.com{% endif %}{% url "editexpopage" path %}" class="editlink"><strong>Edit this page</strong></a></li>{% endif %}
|
||||||
{% if cave_editable %}<li><a href="{% url "edit_cave" cave.url_parent cave.slug %}" class="editlink"><strong>Edit this cave</strong></a></li>{% endif %}
|
{% if cave_editable %}<li><a href="{% if local %}https://expo.survex.com{% endif %}{% url "edit_cave" cave.url_parent cave.slug %}" class="editlink"><strong>Edit this cave</strong></a></li>{% endif %}
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
Loading…
Reference in New Issue
Block a user