28 lines
885 B
HTML
28 lines
885 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>
|
||
|
<span class="day-count">{{ .Count }}</span>
|
||
|
</a>
|
||
|
</div>
|
||
|
{{ end }}
|
||
|
</div>
|
||
|
</div>
|
||
|
{{ end }}
|