This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

superconfig / tools / book / templates / slots.html.j2
1.3 kB 44 lines
1{% extends "base.html.j2" %} 2{% block title %}{{ et.title }}{% endblock %} 3{% block body %} 4<h1>{{ et.title }} <span class="dim">· {{ et.minutes }} min</span></h1> 5{% if et.description %} 6<p>{{ et.description }}</p> 7{% elif cfg.intro and cfg.event_types | length == 1 %} 8<p>{{ cfg.intro }}</p> 9{% endif %} 10<p class="dim">Pick a time. I confirm requests by mail.</p> 11 12<nav class="weeks"> 13 {% if prev %}<a href="?{{ prev }}">‹ earlier</a>{% else %}<span></span>{% endif %} 14 {% if next %}<a href="?{{ next }}">later ›</a>{% endif %} 15</nav> 16 17<div class="days"> 18 {% for day, slots in days.items() %} 19 <div class="day"> 20 <span class="date">{{ day.strftime("%a %d %b") }}</span> 21 <span class="times"> 22 {% for s in slots %} 23 <a href="/{{ et.slug }}/{{ s.astimezone(utc).strftime(fmt) }}?{{ tzq }}">{{ s.strftime("%H:%M") }}</a> 24 {% else %} 25 <span class="dim">-</span> 26 {% endfor %} 27 </span> 28 </div> 29 {% endfor %} 30</div> 31 32<details class="tz"> 33 <summary>times in {{ tz.key }}</summary> 34 <form method="get"> 35 <input name="tz" list="timezones" value="{{ tz.key }}" aria-label="time zone" /> 36 <datalist id="timezones"> 37 {% for name in timezones %} 38 <option value="{{ name }}"></option> 39 {% endfor %} 40 </datalist> 41 <button>set</button> 42 </form> 43</details> 44{% endblock %}