feat(templates): Get static mounted images
This commit is contained in:
@@ -81,7 +81,11 @@ func (t *DefaultTemplater) GenerateBarcode(code string, format string, prefix st
|
||||
}
|
||||
|
||||
func (t *DefaultTemplater) SelectSponsorImage(id int) (string, error) {
|
||||
return templates.GetImage("error"), nil
|
||||
sponsors := []string{
|
||||
"sponsoringheader",
|
||||
"odit",
|
||||
}
|
||||
return templates.GetImage(sponsors[id%len(sponsors)]), nil
|
||||
}
|
||||
|
||||
func (t *DefaultTemplater) StringToTemplate(templateString string) (*template.Template, error) {
|
||||
|
||||
Reference in New Issue
Block a user