Update event archive footer links
authorMagnus Hagander <magnus@hagander.net>
Mon, 28 Sep 2020 15:54:43 +0000 (17:54 +0200)
committerMagnus Hagander <magnus@hagander.net>
Mon, 28 Sep 2020 15:55:45 +0000 (17:55 +0200)
* Turn main links into buttons
* Have a link from the archive back to the upcoming events, not just in
  one direction.
* Write a paragraph about submitting events, similar to what was
  recently done for news.

templates/events/archive.html

index f1f9af4e3748d9b7377bac429f9ce16e0e5490c3..08af3b47e3ea52be03c8f3ab0347a9f15ad2220a 100644 (file)
@@ -28,11 +28,11 @@ whatsoever.</em>
 {{event.summary|markdown:"safe"|striptags}}
 </div>
 {%endfor%}
-{%if not archive%}
-<p><a href="/about/eventarchive/">Older events</a></p>
-{%endif%}
 
-{%if not archive%}
-<p><a href="/account/events/new/">Submit event</a></p>
-{%endif%}
+<p><a class="btn btn-primary" href="/about/{{ archive|yesno:"events,eventarchive"}}/">{{ archive|yesno:"Upcoming,Past"}} events</a></p>
+
+<p>
+  Events are organized by PostgreSQL related associations or third parties. If you wish to list an event related to
+  PostgreSQL, you may <a href="/account/events/new/">submit</a> your own events for consideration after logging in.
+</p>
 {%endblock%}