Skip to content

Commit

Permalink
Add campaign banner to document page
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanw committed Apr 27, 2021
1 parent 215c6e9 commit 11c77dd
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions froide/document/templates/filingcabinet/document_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,16 @@ <h2>{{ object.title }}</h2>
</p>
{% endif %}
{% if object.foirequest %}
<p>
<p>
{% blocktrans with title=object.foirequest.title request_url=object.foirequest.get_absolute_url %}
This document is part of the request ”<a href="{{ request_url }}">{{ title }}</a>”.
{% endblocktrans %}
</p>
</p>
{% if object.foirequest.campaign %}
<div class="my-3">
{% include foirequest.campaign.banner_templates with object=foirequest %}
</div>
{% endif %}
{% endif %}
</div>
{% endblock document_top %}

0 comments on commit 11c77dd

Please sign in to comment.