<div>
{% if limit %}
<div>
{% set cur_page = page / limit %}
{% set num_pages = count / limit %}
<div class="span-3">Page {{1 + cur_page}} of {{1 + num_pages}}</div>
<div class="span-16 tright last" id="discuss">
{% if num_pages and cur_page > 0 %}
<a href="?page={{page - limit}}">← Prev</a>
{% endif %}
{% if num_pages and cur_page < num_pages %}
<a href="?page={{page + limit}}">Next →</a>
{% endif %}
</div>
</div>
{% endif %}
{% if show_moderate and h.has_artifact_access('moderate', value)() %}
<div class="title-pane closed">
<span class="title">Moderate thread</span>
<div class="content">
{{widgets.moderate_thread.display(value=value, action=value.url()+'moderate')}}
</div>
</div>
{% endif %}
</div>