diff --git a/gallery/templates/group.html b/gallery/templates/group.html index 3756d16..11a789a 100644 --- a/gallery/templates/group.html +++ b/gallery/templates/group.html @@ -211,7 +211,7 @@ {% block content %} {% if images %} diff --git a/gallery/templates/index.html b/gallery/templates/index.html index d1c17b3..19224f0 100644 --- a/gallery/templates/index.html +++ b/gallery/templates/index.html @@ -52,7 +52,7 @@

{{ image.created_at }}

- {{ image.alt }} + {% if image.alt %}{{ image.alt }}{% else %}Image Thumbnail{% endif %} {% endfor %} diff --git a/gallery/templates/layout.html b/gallery/templates/layout.html index 38fb5d4..5def5f4 100644 --- a/gallery/templates/layout.html +++ b/gallery/templates/layout.html @@ -42,11 +42,11 @@
- {% if request.path == "/" %} - {% endif %} diff --git a/gallery/templates/list.html b/gallery/templates/list.html index ec9467e..298c1ad 100644 --- a/gallery/templates/list.html +++ b/gallery/templates/list.html @@ -127,10 +127,10 @@
{% if group.images|length > 0 %} {% for image in group.images %} - + {% endfor %} {% else %} - + Error thumbnail {% endif %}