Beitragsansicht

This commit is contained in:
Simon Martens
2025-02-27 21:05:34 +01:00
parent d2e7f91c92
commit caaf86f90d
14 changed files with 692 additions and 175 deletions

View File

@@ -157,6 +157,14 @@ func (c *Content) SetScans(scans []*filesystem.File) {
c.Set(SCAN_FIELD, scans)
}
func (r *Content) ImagePaths() []string {
ret := []string{}
for _, s := range r.Scans() {
ret = append(ret, "/api/files/"+r.TableName()+"/"+r.Id+"/"+s)
}
return ret
}
func (c *Content) Numbering() float64 {
return c.GetFloat(NUMBERING_FIELD)
}