wiki/templates/calendar.html
Peter Stuifzand 170acda64f
All checks were successful
continuous-integration/drone/push Build is passing
Add next and previous actions for calendar
2021-08-15 13:47:13 +02:00

28 lines
885 B
HTML

{{ define "calendar" }}
<div class="calendar">
<div class="calendar-buttons">
<a href="" class="calendar-update" data-calendar="{{ .PrevMonth }}">&lt;</a>
<h3>{{ .Month }} {{ .Year }}</h3>
<a href="" class="calendar-update" data-calendar="{{ .NextMonth }}">&gt;</a>
</div>
<div class="calendar-grid">
<div class="day"></div>
<div class="day">m</div>
<div class="day">d</div>
<div class="day">w</div>
<div class="day">d</div>
<div class="day">v</div>
<div class="day">z</div>
<div class="day">z</div>
{{ range .Days }}
<div class="{{ .Class }}">
<a href="{{ .URL }}">
<span class="day-text">{{ .Text }}</span>
<span class="day-count">{{ .Count }}</span>
</a>
</div>
{{ end }}
</div>
</div>
{{ end }}