From 2542162cb0c514c5db50c34838e5186d6491cbbd Mon Sep 17 00:00:00 2001 From: Horilla Date: Wed, 4 Sep 2024 16:35:06 +0530 Subject: [PATCH] [FIX] HELPDESK:Different icon for different file extensions(#314), All ticket tab view permission --- .../helpdesk/ticket/forms/add_tag.html | 111 +++++++++++------- .../helpdesk/ticket/ticket_detail.html | 96 +++++++++------ .../helpdesk/ticket/ticket_view.html | 2 +- static/build/css/style.min.css | 2 +- 4 files changed, 128 insertions(+), 83 deletions(-) diff --git a/helpdesk/templates/helpdesk/ticket/forms/add_tag.html b/helpdesk/templates/helpdesk/ticket/forms/add_tag.html index f9b76c87c..1b26a1cd3 100644 --- a/helpdesk/templates/helpdesk/ticket/forms/add_tag.html +++ b/helpdesk/templates/helpdesk/ticket/forms/add_tag.html @@ -166,19 +166,28 @@ {% for attachment in comment.comment_attachment.all %}
- - {{attachment}} - + {% with extension=attachment.file.name|lower|slice:"-4:" %} +
  • + +
    + + +
    +
    + + {{ attachment }} + +
  • + {% endwith %}
    @@ -403,22 +418,28 @@