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:
parent
e077473bf0
commit
8025946ab7
2 changed files with 6 additions and 2 deletions
|
|
@ -44,8 +44,6 @@ services:
|
|||
depends_on:
|
||||
postgres:
|
||||
condition: service_healthy
|
||||
mosquitto:
|
||||
condition: service_started
|
||||
restart: unless-stopped
|
||||
|
||||
volumes:
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue