From ad0e437177082f762e77e146b7e9878ac1146c23 Mon Sep 17 00:00:00 2001
From: Magnus Hagander
Date: Mon, 3 Sep 2018 12:57:25 +0200
Subject: [PATCH] Add links to website, reg, cfp and cfs on events listing
---
template/events/index.html | 6 +++---
template/events/wideeventlist.inc | 4 ++++
2 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/template/events/index.html b/template/events/index.html
index 7b08072..3810f00 100644
--- a/template/events/index.html
+++ b/template/events/index.html
@@ -29,17 +29,17 @@
{%if regopen%}
open for registration
-{%include "events/wideeventlist.inc" with events=regopen%}
+{%include "events/wideeventlist.inc" with events=regopen what="reg"%}
{%endif%}
{%if cfpopen%}
open call for papers
-{%include "events/wideeventlist.inc" with events=cfpopen%}
+{%include "events/wideeventlist.inc" with events=cfpopen what="cfp"%}
{%endif%}
{%if cfsopen%}
open call for sponsors
-{%include "events/wideeventlist.inc" with events=cfsopen%}
+{%include "events/wideeventlist.inc" with events=cfsopen what="cfs"%}
{%endif%}
Past events
diff --git a/template/events/wideeventlist.inc b/template/events/wideeventlist.inc
index 09388e0..56a38bc 100644
--- a/template/events/wideeventlist.inc
+++ b/template/events/wideeventlist.inc
@@ -11,6 +11,10 @@
{%if event.promotext%}
{{event.promotext|markdown}}
{%endif%}
+View website
+{%if event.active and what == "reg"%}Register{%endif%}
+{%if event.callforpapersopen and what == "cfp"%}Submit presentation{%endif%}
+{%if event.callforsponsorsopen and what == "cfs"%}Sign up{%endif%}
{%endfor%}
--
2.39.5