diff --git a/controllers/timetable.go b/controllers/timetable.go index b1d5eb1..58267dd 100644 --- a/controllers/timetable.go +++ b/controllers/timetable.go @@ -55,9 +55,9 @@ func (b *BaseHandler) printTimetable(timetable map[models.Date]map[int]models.Of for minute := 0; minute < 60; minute += b.config.Date.MinuteGranularity { tableBody += "" if minute == 0 { - tableBody += fmt.Sprintf("%d Uhr\n", hour) + tableBody += fmt.Sprintf("%d Uhr\n", hour) } else { - tableBody += "\n" + tableBody += "\n" } for day := 0; day < 5; day += 1 { for slot := 0; slot < slots[day]; slot += 1 { @@ -96,7 +96,7 @@ func (b *BaseHandler) printTimetable(timetable map[models.Date]map[int]models.Of } } else { if slot+1 == slots[day] { - tableBody += "\n" + tableBody += "\n" } else { tableBody += "\n" } diff --git a/templating/templates/addMask.html b/templating/templates/addMask.html index 2e55602..00a9d6b 100644 --- a/templating/templates/addMask.html +++ b/templating/templates/addMask.html @@ -14,17 +14,6 @@ {{end}} -
diff --git a/templating/templates/base.html b/templating/templates/base.html index 411898c..93aba65 100644 --- a/templating/templates/base.html +++ b/templating/templates/base.html @@ -6,7 +6,8 @@ - + + {{block "title" .}}Start{{end}} – Sprechstunden diff --git a/templating/templates/officeHourTable.html b/templating/templates/officeHourTable.html index 72e86ed..620b38e 100644 --- a/templating/templates/officeHourTable.html +++ b/templating/templates/officeHourTable.html @@ -1,11 +1,11 @@ - - - - - - + + + + + + {{.TableBody}} -
 MontagDienstagMittwochDonnerstagFreitag MontagDienstagMittwochDonnerstagFreitag
\ No newline at end of file + diff --git a/templating/templates/td.html b/templating/templates/td.html index e9c79ce..89df7de 100644 --- a/templating/templates/td.html +++ b/templating/templates/td.html @@ -1,4 +1,4 @@ - + {{if .DeleteIcons}}
{{end}} {{printf "%02d" .OfficeHour.Date.Hour}}:{{printf "%02d" .OfficeHour.Date.Minute}} - {{printf "%02d" .OfficeHour.EndDate.Hour}}:{{printf "%02d" .OfficeHour.EndDate.Minute}}
{{if eq .OfficeHour.Date.Week 1}}in ungeraden Vorlesungswochen
{{end}}{{if eq .OfficeHour.Date.Week 2}}in geraden Vorlesungswochen
{{end}}