14 lines
693 B
HTML
14 lines
693 B
HTML
{{ define "calendar" }}
|
|
<div class="calendar">
|
|
<div class="calendar-buttons">
|
|
<a href="" class="calendar-update" data-calendar="{{ .PrevMonth }}"><</a>
|
|
<h3>{{ .Month }} {{ .Year }}</h3>
|
|
<a href="" class="calendar-update" data-calendar="{{ .NextMonth }}">></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></a></div>{{ end }}
|
|
</div>
|
|
</div>
|
|
{{ end }}
|