From ad0206414b14f59c33cba03c8f398fa13c4129b2 Mon Sep 17 00:00:00 2001
From: Jonathan Weth <git@jonathanweth.de>
Date: Wed, 11 Mar 2020 15:46:31 +0100
Subject: [PATCH] Add option to show recipients to common announcement template

---
 aleksis/core/templates/core/announcements.html | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/aleksis/core/templates/core/announcements.html b/aleksis/core/templates/core/announcements.html
index 3e1925536..81d9e2e82 100644
--- a/aleksis/core/templates/core/announcements.html
+++ b/aleksis/core/templates/core/announcements.html
@@ -18,6 +18,13 @@
       {% endif %}
 
       <i class="material-icons left">announcement</i>
+
+      {% if show_recipients and announcement.recipients %}
+        <p>
+          {{ announcement.recipients.all|join:", " }}:
+        </p>
+      {% endif %}
+
       <p>
         <strong>{{ announcement.title }}</strong> <br/>
         {{ announcement.description }}
-- 
GitLab