From: Magnus Hagander Date: Tue, 20 Nov 2018 10:16:01 +0000 (+0100) Subject: Start using a macro called icon() for icons X-Git-Url: http://git.postgresql.org/gitweb/?a=commitdiff_plain;h=d8d6f42293f0dab5ec67b708748801573a290d3d;p=pgeu-website.git Start using a macro called icon() for icons We can use it for more later, but for now we use it to indicate slides in the session list and schedule. By default this macro is empty, but it can be overridden in downstream templates to include an icon appropriate for that template. --- diff --git a/template.jinja/confreg/schedule.html b/template.jinja/confreg/schedule.html index 0a745e4..1996622 100644 --- a/template.jinja/confreg/schedule.html +++ b/template.jinja/confreg/schedule.html @@ -1,4 +1,5 @@ {%extends "base.html" %} +{%if not icon%}{%macro icon(what)%}{%endmacro%}{%endif%} {%block title%}Conference Schedule - {{conference}}{%endblock%} {%block extrahead%}