package pages import ( "fmt" "git.myrkvi.com/myrkvi/bin/config" "git.myrkvi.com/myrkvi/bin/models" "git.myrkvi.com/myrkvi/bin/views/components" ) templ BinFull(file models.File) { @page( BinPartial(file), models.DefaultMenu, -1, file.Filename, ) } templ BinPartial(file models.File) {

{ file.Filename } if file.Language != "" { ({ file.Language }) }

{ file.Description }

{ file.Data }
@components.SubmitFormButton("delete") if file.AdminKey != "" { permalink with deletion key }

this is your deletion key!
you will need to store it if you want to delete the file.

if file.AdminKey != "" && file.Email == "" && config.SMTP.Enabled {
@components.GetButton("email me this!", "/partial/email", "this", "outerHTML")
}
}