From 0a337a26633db3a14f5a2321e35d4fc49a43b283 Mon Sep 17 00:00:00 2001
From: Chris Hill-Scott
Date: Tue, 7 Jun 2016 14:44:46 +0100
Subject: [PATCH] On the activity page, only link to template or job
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
If the notification has come from an API call, the template is the
only thing that exists
If it’s a job, then we need to tell you name of the file. But you can
click though to see the template.
---
app/templates/views/notifications.html | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/app/templates/views/notifications.html b/app/templates/views/notifications.html
index ec544443b..cee5a602f 100644
--- a/app/templates/views/notifications.html
+++ b/app/templates/views/notifications.html
@@ -55,12 +55,11 @@
{{ item.to }}
- {{ item.template.name }}
- sent from
{% if item.job %}
- {{ item.job.original_file_name }}
+ From {{ item.job.original_file_name }}
{% else %}
- an API call
+ {{ item.template.name }}
+ from an API call
{% endif %}
{% endcall %}