Lesekabinett & Startseite

This commit is contained in:
Simon Martens
2025-03-02 00:27:16 +01:00
parent 6e286857d5
commit 0a86833a9f
56 changed files with 771 additions and 445 deletions

View File

@@ -43,6 +43,12 @@ func (b *IndexBilder) SetBild(bild *filesystem.File) {
b.Set(F_IMAGE, bild)
}
func (r *IndexBilder) BildPath() string {
img := r.Bild()
ret := "/api/files/" + r.TableName() + "/" + r.Id + "/" + img
return ret
}
func (b *IndexBilder) Vorschau() string {
return b.GetString(F_PREVIEW)
}
@@ -51,6 +57,12 @@ func (b *IndexBilder) SetVorschau(vorschau *filesystem.File) {
b.Set(F_PREVIEW, vorschau)
}
func (r *IndexBilder) VorschauPath() string {
img := r.Vorschau()
ret := "/api/files/" + r.TableName() + "/" + r.Id + "/" + img
return ret
}
type IndexTexte struct {
core.BaseRecordProxy
}