2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2026-04-21 03:09:34 +01:00

fix template bug for newentrance

This commit is contained in:
Philip Sargent
2021-04-17 23:59:11 +01:00
parent d4317b5fd3
commit eea74406c9
8 changed files with 72 additions and 46 deletions

View File

@@ -28,7 +28,7 @@
<p style="text-align:right">
<a href="{% url "newcave" %}">New Cave</a><br>
<a href="{% url "newentrance" %}">New Entrance</a><br>
<a href="{% url "newentrance" "1623-000" %}">New Entrance</a><br>
<a href="/noinfo/cave-number-index">Cave Number Index - kept updated</a>
</p>
<h3>1623</h3>

View File

@@ -1,38 +1,12 @@
{% extends 'base.html' %}
{% block extrahead %}
<style>
div#editLinks {
Zposition:absolute;
background: #999;
bottom:0px;
right:0px;
font-family: "Courier New", Courier, monospace;
filter:alpha(opacity=75);
-moz-opacity:.75;
opacity:.75;
text-align:right;
}
div#editLinks a{
color:#FFF;
}
</style>
{% endblock %}
{% block title %}Website Error - {% endblock %}
{% block content %}
<div class='middle'>
<h2>Website Error</h2>
</div>
<div id="editLinks"> {% block loginInfo %}
<a href="/">Home</a> |
<a id="cuccLink" href="http://camcaving.uk/">CUCC</a> |
<a id="expoWebsiteLink" href="http://expo.survex.com">expo.survex</a> |
{% if user.username %}User:{{ user.username }}
{% if user.person %}(<a href="{{ user.person.get_absolute_url }}">{{ user.person }}</a>){% endif %}
| <a <a href='/accounts/logout/'>Log out</a> {% else %} <a href='/accounts/login/'>Log in</a> {% endif %}
</div>
{% endblock%}
<div style='width: 300px;' class='middle3 login'>
<div class='align-center'>

View File

@@ -34,7 +34,7 @@ div#editLinks a{
</div>
{% endblock%}
<p>Probably a mistake. But you can use <a href="{%url "editexpopage" path %}">this link</a>
<p>Probably a mistake. But you can try <a href="{%url "editexpopage" path %}">this link</a> or <a href="{{ path }}/edit">this one</a> to fix a real error.
<p>
or 'Edit this page' in the menu on the left to create this page if you are logged in.
<ul>