Add indication of community events on events details page
authorMagnus Hagander <magnus@hagander.net>
Mon, 11 Oct 2021 18:35:18 +0000 (20:35 +0200)
committerMagnus Hagander <magnus@hagander.net>
Mon, 11 Oct 2021 18:36:07 +0000 (20:36 +0200)
This should probably have been there from the beginning, and was just
missed.

Spotted by Bruce Momjian

templates/events/item.html

index 81eb42d031269d5c9d6ba5efd6592c809d9dd87a..00fa6535a1c41366ce81332ad86be8499929095d 100644 (file)
@@ -6,6 +6,7 @@
 <div class="eventdate">Date: <strong>{{obj.displaydate|safe}}</strong></div>
 <div>Location: {{obj.locationstring}}</div>
 {%if obj.language%}<div>Language: {{obj.language}}</div>{%endif%}
+{%if obj.badged%}<img src="/media/img/PostgreSQL_Badge1.svg" class="community" alt="PostgreSQL Community Event">  This event is recognised under the <a href="/about/policies/conferences/">community event guidelines</a>.{%endif%}
 {{obj.details|markdown}}
 {%if obj.has_organisation%}
 <p>Posted by {{obj.org}}{%if obj.org.email%} ({{obj.org.email}}){%endif%}.</p>