mirror of
https://expo.survex.com/repositories/expoweb/.git/
synced 2025-03-28 21:21:56 +00:00
[svn r8234] Fix "if logged in" tag.
Changed logbook template; no longer uses the redundant _next and _prev fields.
This commit is contained in:
parent
0d0005ed66
commit
119f93255c
troggle/templates
@ -24,7 +24,7 @@
|
|||||||
<hr/>
|
<hr/>
|
||||||
<div id="editLink">
|
<div id="editLink">
|
||||||
{% block loginInfo %}
|
{% block loginInfo %}
|
||||||
{% if user %}
|
{% if user.username %}
|
||||||
You are logged in as {{ user.username }}.
|
You are logged in as {{ user.username }}.
|
||||||
| <a href="{{ settings.URL_ROOT }}/accounts/logout">Log out</a>
|
| <a href="{{ settings.URL_ROOT }}/accounts/logout">Log out</a>
|
||||||
{% else %}
|
{% else %}
|
||||||
|
@ -16,11 +16,11 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
{% if logbookentry.logbookentry_prev %}
|
{% if logbookentry.get_previous_by_date %}
|
||||||
<a href="{% url logbookentry logbookentry.logbookentry_prev.href %}">{{logbookentry.logbookentry_prev.date}}</a>
|
<a href="{% url logbookentry logbookentry.get_previous_by_date.href %}">{{logbookentry.get_previous_by_date.date}}</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if logbookentry.logbookentry_next %}
|
{% if logbookentry.get_next_by_date %}
|
||||||
<a href="{% url logbookentry logbookentry.logbookentry_next.href %}">{{logbookentry.logbookentry_next.date}}</a>
|
<a href="{% url logbookentry logbookentry.get_next_by_date.href %}">{{logbookentry.get_next_by_date.date}}</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
@ -43,13 +43,13 @@
|
|||||||
</td>
|
</td>
|
||||||
|
|
||||||
<td>
|
<td>
|
||||||
{% if persontrip.persontrip_prev %}
|
{% if persontrip.get_previous_by_date %}
|
||||||
<a href="{% url logbookentry persontrip.persontrip_prev.logbook_entry.href %}">{{persontrip.persontrip_prev.date}}</a>
|
<a href="{% url logbookentry persontrip.get_previous_by_date.logbook_entry.href %}">{{persontrip.get_previous_by_date.date}}</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
{% if persontrip.persontrip_next %}
|
{% if persontrip.get_next_by_date %}
|
||||||
<a href="{% url logbookentry persontrip.persontrip_next.logbook_entry.href %}">{{persontrip.persontrip_next.date}}</a>
|
<a href="{% url logbookentry persontrip.get_next_by_date.logbook_entry.href %}">{{persontrip.get_next_by_date.date}}</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user