You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
693 B

{{ 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 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></a></div>{{ end }}
{{ end }}