</p>
{%if regopen%}
<h3>open for registration</h3>
-{%include "events/wideeventlist.inc" with events=regopen%}
+{%include "events/wideeventlist.inc" with events=regopen what="reg"%}
{%endif%}
{%if cfpopen%}
<h3>open call for papers</h3>
-{%include "events/wideeventlist.inc" with events=cfpopen%}
+{%include "events/wideeventlist.inc" with events=cfpopen what="cfp"%}
{%endif%}
{%if cfsopen%}
<h3>open call for sponsors</h3>
-{%include "events/wideeventlist.inc" with events=cfsopen%}
+{%include "events/wideeventlist.inc" with events=cfsopen what="cfs"%}
{%endif%}
<h2>Past events</h2>
{%if event.promotext%}
{{event.promotext|markdown}}
{%endif%}
+<a class="btn btn-primary btn-sm" href="{{event.confurl}}">View website</a>
+{%if event.active and what == "reg"%}<a class="btn btn-primary btn-sm" href="/events/{{event.urlname}}/register/">Register</a>{%endif%}
+{%if event.callforpapersopen and what == "cfp"%}<a class="btn btn-primary btn-sm" href="/events/{{event.urlname}}/callforpapers/">Submit presentation</a>{%endif%}
+{%if event.callforsponsorsopen and what == "cfs"%}<a class="btn btn-primary btn-sm" href="/events/sponsor/signup/{{event.urlname}}/">Sign up</a>{%endif%}
</dd>
{%endfor%}
</dl>