diff --git a/group/templates/group/group_discuss.html b/group/templates/group/group_discuss.html index b596717ec4..5179cf046f 100644 --- a/group/templates/group/group_discuss.html +++ b/group/templates/group/group_discuss.html @@ -78,7 +78,7 @@ {% if group_msgs %} {% endif %} - {% if msgs_more %} - - {% endif %} - - {% if pages_show|length > 1 %} -
- {% if current_page != 1 %} - + {% if group_msgs.has_other_pages %} +
+ {% if group_msgs.has_previous %} + {% endif %} - {% for p in pages_show %} - {% if p == current_page %} - {{ p }} - {% else %} - {{ p }} - {% endif %} + {% for pr in group_msgs.page_range %} + {% if pr == group_msgs.number %} + {{ pr }} + {% else %} + {{ pr }} + {% endif %} {% endfor %} - {% if page_next %} - + {% if group_msgs.has_next %} + {% endif %}
{% endif %} - {% if group_msgs|length > 5 %} + {% if group_msgs.object_list|length > 5 %} {% trans "↑Top" %} {% endif %}
@@ -180,7 +176,7 @@ {% block extra_script %}