mirror of https://github.com/FreeCol/freecol.git
Only add a next or previous link if such a news post exists
This commit is contained in:
parent
ec398dd956
commit
ba6f2aa33c
|
@ -22,12 +22,12 @@
|
|||
<table align="center" style="margin-top: 25px;">
|
||||
<tr>
|
||||
<th class="pagenav_prev">
|
||||
<a href="{{ page.previous.url }}">< Prev</a>
|
||||
{% if page.previous %}<a href="{{ page.previous.url }}">{% endif %}< Prev{% if page.previous %}</a>{% endif %}
|
||||
</th>
|
||||
<td width="50">
|
||||
</td>
|
||||
<th class="pagenav_next">
|
||||
<a href="{{ page.next.url }}">Next ></a>
|
||||
{% if page.next %}<a href="{{ page.next.url }}">{% endif %}Next >{% if page.next %}</a>{% endif %}
|
||||
</th>
|
||||
</tr>
|
||||
</table>
|
||||
|
|
Loading…
Reference in New Issue