X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/5913c54d19b8f6775633176032161d49f9b2f1aa..69d9738d6855e38869678a54991d30e5cddb8e67:/src/catalogue/templates/catalogue/image_table.html diff --git a/src/catalogue/templates/catalogue/image_table.html b/src/catalogue/templates/catalogue/image_table.html old mode 100755 new mode 100644 index e6caedda..4f0a4250 --- a/src/catalogue/templates/catalogue/image_table.html +++ b/src/catalogue/templates/catalogue/image_table.html @@ -2,6 +2,8 @@ {% load pagination_tags %} {% load username from common_tags %} +
+
@@ -14,17 +16,17 @@
- +
- {% if not viewed_user %} - {% endif %} - - - {% with cnt=objects|length %} - {% autopaginate objects 100 %} + {% autopaginate objects 100 as objects_page %} - {% for item in objects %} - {{ item.short_html|safe }} + {% for image in objects_page %} + {% include 'catalogue/image_short.html' %} {% endfor %} - - {% endwith %}
+ class='form-control text-filter' value="{{ request.GET.title }}" />
- {% paginate %} - {% blocktrans count c=cnt %}{{c}} image{% plural %}{{c}} images{% endblocktrans %}
+ {% paginate %} + {% blocktrans count c=objects|length %}{{c}} image{% plural %}{{c}} images{% endblocktrans %} {% if not objects %}

{% trans "No images found." %}

{% endif %} @@ -98,3 +97,6 @@ {% endif %}value="{{ user.username }}">{{ user|username }} ({{ user.count }}) {% endfor %} + +
+