diff options
author | substantialnoninfringinguser <substantialnoninfringinguser@gmail.com> | 2009-05-13 05:49:05 +0100 |
---|---|---|
committer | substantialnoninfringinguser <substantialnoninfringinguser@gmail.com> | 2009-05-13 05:49:05 +0100 |
commit | c4b8ea4d9b499c2414532714787fbfea9079609b (patch) | |
tree | d53f6a4915c782421848ffbf3e983ff9c73931ee /templates/logbookentry.html | |
parent | cb52c47aa9632a6c0affde9b0ceeab06877c760b (diff) | |
download | troggle-c4b8ea4d9b499c2414532714787fbfea9079609b.tar.gz troggle-c4b8ea4d9b499c2414532714787fbfea9079609b.tar.bz2 troggle-c4b8ea4d9b499c2414532714787fbfea9079609b.zip |
[svn] Fix "if logged in" tag.
Changed logbook template; no longer uses the redundant _next and _prev fields.
Copied from http://cucc@cucc.survex.com/svn/trunk/expoweb/troggle/, rev. 8234 by aaron @ 1/30/2009 4:53 AM
Diffstat (limited to 'templates/logbookentry.html')
-rw-r--r-- | templates/logbookentry.html | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/templates/logbookentry.html b/templates/logbookentry.html index 57c1c18..613f2bf 100644 --- a/templates/logbookentry.html +++ b/templates/logbookentry.html @@ -16,11 +16,11 @@ {% endif %}
<p>
- {% if logbookentry.logbookentry_prev %}
- <a href="{% url logbookentry logbookentry.logbookentry_prev.href %}">{{logbookentry.logbookentry_prev.date}}</a>
+ {% if logbookentry.get_previous_by_date %}
+ <a href="{% url logbookentry logbookentry.get_previous_by_date.href %}">{{logbookentry.get_previous_by_date.date}}</a>
{% endif %}
- {% if logbookentry.logbookentry_next %}
- <a href="{% url logbookentry logbookentry.logbookentry_next.href %}">{{logbookentry.logbookentry_next.date}}</a>
+ {% if logbookentry.get_next_by_date %}
+ <a href="{% url logbookentry logbookentry.get_next_by_date.href %}">{{logbookentry.get_next_by_date.date}}</a>
{% endif %}
</p>
@@ -43,13 +43,13 @@ </td>
<td>
- {% if persontrip.persontrip_prev %}
- <a href="{% url logbookentry persontrip.persontrip_prev.logbook_entry.href %}">{{persontrip.persontrip_prev.date}}</a>
+ {% if persontrip.get_previous_by_date %}
+ <a href="{% url logbookentry persontrip.get_previous_by_date.logbook_entry.href %}">{{persontrip.get_previous_by_date.date}}</a>
{% endif %}
</td>
<td>
- {% if persontrip.persontrip_next %}
- <a href="{% url logbookentry persontrip.persontrip_next.logbook_entry.href %}">{{persontrip.persontrip_next.date}}</a>
+ {% if persontrip.get_next_by_date %}
+ <a href="{% url logbookentry persontrip.get_next_by_date.logbook_entry.href %}">{{persontrip.get_next_by_date.date}}</a>
{% endif %}
</td>
</tr>
|