sprechstunden-go/templating/templates/td.html

11 lines
760 B
HTML
Raw Normal View History

2022-09-05 18:10:35 +00:00
<td rowspan="{{divide .OfficeHour.Duration .MinuteGranularity}}" style="border: 1px solid">
{{if .DeleteIcons}}<div style="text-align: right;"><a href="/deleteOfficeHour?id={{.OfficeHour.Id}}"></a></div>{{end}}
2022-10-18 09:52:37 +00:00
{{printf "%02d" .OfficeHour.Date.Hour}}:{{printf "%02d" .OfficeHour.Date.Minute}} - {{printf "%02d" .OfficeHour.EndDate.Hour}}:{{printf "%02d" .OfficeHour.EndDate.Minute}}<br>
{{if eq .OfficeHour.Date.Week 1}}in ungeraden Wochen<br>{{end}}{{if eq .OfficeHour.Date.Week 2}}in geraden Wochen<br>{{end}}
{{.OfficeHour.Course.Name}}<br>
{{.OfficeHour.Tutor.Name}}<br>
{{.OfficeHour.Room.Name}}<br>
{{if ne .OfficeHour.Info ""}}{{.OfficeHour.Info}}<br>{{end}}
{{if ne .OfficeHour.RoomName ""}}{{.OfficeHour.RoomName}}<br>{{end}}
</td>