From 11c77dde66b16f9c4315980ad4485782b2073127 Mon Sep 17 00:00:00 2001
From: Stefan Wehrmeyer
Date: Tue, 27 Apr 2021 08:36:40 +0100
Subject: [PATCH] Add campaign banner to document page
---
.../templates/filingcabinet/document_detail.html | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/froide/document/templates/filingcabinet/document_detail.html b/froide/document/templates/filingcabinet/document_detail.html
index 3260c07fc..9620a8493 100644
--- a/froide/document/templates/filingcabinet/document_detail.html
+++ b/froide/document/templates/filingcabinet/document_detail.html
@@ -18,11 +18,16 @@ {{ object.title }}
{% endif %}
{% if object.foirequest %}
-
+
{% blocktrans with title=object.foirequest.title request_url=object.foirequest.get_absolute_url %}
This document is part of the request ”{{ title }}”.
{% endblocktrans %}
-
+
+ {% if object.foirequest.campaign %}
+
+ {% include foirequest.campaign.banner_templates with object=foirequest %}
+
+ {% endif %}
{% endif %}
{% endblock document_top %}