Could not parse the remainder

Inside a {% %} tag, variables aren’t surrounded by {{. Try this:

{% ifequal num buildSummary_list.number %}

Also, it looks like your two comparisons can be joined with an else:

{% for num in buildSummary_list.paginator.page_range %}
    {% ifequal num buildSummary_list.number %}
        <b>{{num}}</b>
    {% else %}
        <a href="https://stackoverflow.com/questions/3562559/?page={{num}}"><b>{{num}}</b></a>
    {% endifequal %}
{% endfor %}

Leave a Comment