I'm using the Django Web Framework and I have a html table displaying some fields from one of my tables. If there are no fields to display (records in a queryset), I pass variable = "0" from python.
I want to append text to the table in this case so it appears underneath my table. But it's appearing above my table....
<div class="1" style="overflow-x:auto;">
<table id="1" class="1">
<tr>
<th>Heading 1</th>
<th>Heading 2</th>
</tr>
{% ifequal variable "0" %}
<p>No items to show</p>
{% else %}
<--append some fields-->
{% endifnotequal %}
</table>
</div>
If I'm appending the fields this works fine they appear as expected, but in the other case it prepends above the table instead...
Why? Help!