From: Jonathan S. Katz
Date: Mon, 16 Apr 2018 03:55:14 +0000 (-0400)
Subject: Update "Event" and "News" archive to reflect new designs.
X-Git-Url: http://git.postgresql.org/gitweb/?a=commitdiff_plain;h=70ed50215fae0f38aa3bbbff20d8b67032b3c02f;p=pgweb.git
Update "Event" and "News" archive to reflect new designs.
---
diff --git a/templates/events/archive.html b/templates/events/archive.html
index 5af79496..993ba17e 100644
--- a/templates/events/archive.html
+++ b/templates/events/archive.html
@@ -3,16 +3,27 @@
{%block title%}{{title}}{%endblock%}
{%block contents%}
-{{title}}
+{{title}}
{%for eventblock in eventblocks%}
{%if eventblocks|length > 1%}{%endif%}
Note: The PostgreSQL Global Development Group does not endorse any
events run by third parties. No guarantee of the quality of events is offered
-whatsoever. For information on Community Conference Recognition, please review the guidelines here.
+whatsoever.
+{% if eventblock.name == 'Community Events' %}
+
+
+ indicates that an event is recognised under the community event guidelines and is directly helping the PostgreSQL community.
+
+{% endif %}
{%for event in eventblock.events %}
-
+
Date: {{event.displaydate|safe}}
Location: {{event.locationstring}}
{%if event.language%}Language: {{event.language}}
{%endif%}
diff --git a/templates/news/item.html b/templates/news/item.html
index 3f664169..1ca14c63 100644
--- a/templates/news/item.html
+++ b/templates/news/item.html
@@ -10,6 +10,6 @@
website. We apologise for any formatting issues caused by the migration.
{%endif%}
{%for t in obj.tags.all%}
-{{t.name}}
+{{t.name}}
{%endfor%}
{%endblock%}
diff --git a/templates/news/newsarchive.html b/templates/news/newsarchive.html
index ed1f6f2b..980a302a 100644
--- a/templates/news/newsarchive.html
+++ b/templates/news/newsarchive.html
@@ -2,14 +2,14 @@
{%load markup%}
{%block title%}News archive{%if tag%} - {{tag.name}}{%endif%}{%endblock%}
{%block contents%}
-News archive{%if tag%} - {{tag.name}}{%endif%}
+News archive{%if tag%} - {{tag.name}}{%endif%}
-{%for t in newstags%}{{t.name}} {%endfor%}
+{%for t in newstags%}{{t.name}} {%endfor%}
{%for obj in news %}
-
+
Posted on {{obj.displaydate}} by {{ obj.org.name }}
{{obj.content|markdown|striptags|truncatewords:20}}
Read more...