From c43b877741e0f7bce686ac1e565a13b5b6620bb9 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Sun, 25 Oct 2020 16:26:57 +0000 Subject: added link to document url in comments box in caf detail page --- ctrack/caf/templates/caf/caf_detail.html | 12 +++++++++++- .../templates/organisations/organisation_detail.html | 12 +++++++++--- 2 files changed, 20 insertions(+), 4 deletions(-) diff --git a/ctrack/caf/templates/caf/caf_detail.html b/ctrack/caf/templates/caf/caf_detail.html index 52da584..7c15343 100644 --- a/ctrack/caf/templates/caf/caf_detail.html +++ b/ctrack/caf/templates/caf/caf_detail.html @@ -119,7 +119,17 @@ {{ event.type_descriptor }} {{ event.user.name }} {{ event.short_description }} - {{ event.comments }} + + {% if event.comments %} + {{ event.comments }} + {% else %} + NA + {% endif %} +
+ {% if event.document_link %} + [URL] + {% endif %} + {% endfor %} diff --git a/ctrack/organisations/templates/organisations/organisation_detail.html b/ctrack/organisations/templates/organisations/organisation_detail.html index 02c7ab0..5cbdcb8 100644 --- a/ctrack/organisations/templates/organisations/organisation_detail.html +++ b/ctrack/organisations/templates/organisations/organisation_detail.html @@ -240,11 +240,11 @@ {% endif %} {% if event.requested_response_date and not event.response_received_date %} - + {{ event.requested_response_date }} {% else %} - +   {% endif %} @@ -313,7 +313,13 @@ {{ event.user.username }} {% endif %} {{ event.short_description }} - {{ event.comments }}
+ + {% if event.comments %} + {{ event.comments }} + {% else %} + NA + {% endif %} +
{% if event.document_link %} [URL] {% endif %} -- cgit v1.2.3