From d46762cbc25e7531bae46ddb59e690e2aab5d388 Mon Sep 17 00:00:00 2001 From: Thomas Sileo Date: Mon, 9 Sep 2019 21:23:18 +0200 Subject: [PATCH] Add alt attribute for images --- templates/utils.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/utils.html b/templates/utils.html index 1b6ed16..e861346 100644 --- a/templates/utils.html +++ b/templates/utils.html @@ -205,11 +205,11 @@ self reply {% for a in obj.attachment %} {% if (a.mediaType and a.mediaType.startswith("image/")) or (a.type and a.type == 'Image') %} - + {{ a.name }} {% elif (a.mediaType and a.mediaType.startswith("video/")) %} -
  • +
  • {% elif (a.mediaType and a.mediaType.startswith("audio/")) %} -
  • +
  • {% else %}
  • {% if a.filename %}{{ a.filename }}{% else %}{{ a.url }}{% endif %}
  • {% endif %}