From 485e33614d5065936d9dbf1b56863130d65b471f Mon Sep 17 00:00:00 2001 From: toothstone Date: Mon, 12 May 2025 12:24:14 +0200 Subject: [PATCH] Use empty string for image alt text As long as there is no way to enter a meaningful image description, setting the alt text to an empty string is preferable to the not even human readable showcase name attribute. This is a start towards #181. --- ckanext/showcase/templates/showcase/read.html | 2 +- ckanext/showcase/templates/showcase/snippets/showcase_item.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ckanext/showcase/templates/showcase/read.html b/ckanext/showcase/templates/showcase/read.html index 00096dc2..dca5991b 100644 --- a/ckanext/showcase/templates/showcase/read.html +++ b/ckanext/showcase/templates/showcase/read.html @@ -71,7 +71,7 @@

{% if pkg.image_display_url %} -

{{ name }}

+

{% endif %} {% block package_notes %} diff --git a/ckanext/showcase/templates/showcase/snippets/showcase_item.html b/ckanext/showcase/templates/showcase/snippets/showcase_item.html index d0f7466e..d25f4e13 100644 --- a/ckanext/showcase/templates/showcase/snippets/showcase_item.html +++ b/ckanext/showcase/templates/showcase/snippets/showcase_item.html @@ -20,7 +20,7 @@
  • {% block item_inner %} {% block image %} - {{ package.name }} + {% endblock %} {% block title %}

    {{ h.link_to(title|truncate(truncate_title), h.url_for(showcase_read_route, id=package.name)) }}