diff --git a/pyshop/templates/pyshop/package/show.html b/pyshop/templates/pyshop/package/show.html index 7dc25ef..2f8ccb4 100644 --- a/pyshop/templates/pyshop/package/show.html +++ b/pyshop/templates/pyshop/package/show.html @@ -22,32 +22,17 @@
{% trans %}Other Version:{% endtrans %} - {% set display = 0 %} {% for r in package.sorted_releases %} - {% if r.id == release.id %} - {% set idx = loop.index0 %} - {% set display = 1%} - {% if idx > 0 %} - - - {{package.sorted_releases[0].version}} - - ... - {% endif %} - {% endif %} - {% if display and loop.index <= idx + 10 %} - {{r.version}} {% endif %} - {% if loop.last and idx + 10 < loop.index %} - ... + {% if loop.last and loop.index >= 10 %} + ... {% endif %} {% endfor %}