fix: orientationLabel in Tenant-Template registrieren + mosquitto-Abhängigkeit entfernen

- Template-Funktion `orientationLabel` in tenant/tenant.go ergänzt (fehlte nach UI-Refactoring)
- `depends_on: mosquitto` aus compose/server-stack.yml entfernt (Service ist auskommentiert)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Jesko Anschütz 2026-03-25 09:47:11 +01:00
parent e077473bf0
commit 8025946ab7
2 changed files with 6 additions and 2 deletions

View file

@ -44,8 +44,6 @@ services:
depends_on:
postgres:
condition: service_healthy
mosquitto:
condition: service_started
restart: unless-stopped
volumes:

View file

@ -40,6 +40,12 @@ var tmplFuncs = template.FuncMap{
return fmt.Sprintf("%d B", b)
}
},
"orientationLabel": func(o string) string {
if o == "portrait" {
return "Hochformat"
}
return "Querformat"
},
}
const maxUploadSize = 512 << 20 // 512 MB