diff --git a/links/templates/links/collection_detail.html b/links/templates/links/collection_detail.html index 24a2bae..abe9548 100644 --- a/links/templates/links/collection_detail.html +++ b/links/templates/links/collection_detail.html @@ -35,48 +35,54 @@ -
-
-

{{ collection.name }}

+
+ +
+

{{ collection.name }}

{% if collection.description %}

{{ collection.description }}

{% endif %}
-
+ + +
+ - + class="inline-flex items-center px-3 py-2 sm:px-4 sm:py-2 border border-gray-300 text-sm font-medium rounded-md shadow-sm text-gray-700 bg-white hover:bg-gray-50"> + - {% trans "Edit Collection" %} + + +
diff --git a/links/templates/links/collection_list.html b/links/templates/links/collection_list.html index d6eda56..e2f7fe6 100644 --- a/links/templates/links/collection_list.html +++ b/links/templates/links/collection_list.html @@ -3,12 +3,12 @@ {% load static %} {% block content %} -
-
-

{% trans "Image Collections" %}

+
+ -
+
{% for collection in collections %}
- +
-
+
{% with images=collection.images.all|slice:":4" %} {% for image in images %} -
+
{{ image.title }}
{% empty %}
- + -

{% trans "No images yet" %}

+

{% trans "No images yet" %}

{% endfor %} {% endwith %} @@ -45,33 +46,33 @@
-
-

+
+

{{ collection.name }}

-

+

{{ collection.images.count }} {% trans "images" %}

{% if collection.description %} -

{{ collection.description }}

+

{{ collection.description }}

{% endif %}
-
+
- +