feat: version and back button

This commit is contained in:
httpjamesm 2022-12-28 11:33:26 -05:00
parent 3398ba637b
commit 504144c94b
6 changed files with 43 additions and 8 deletions

View file

@ -141,10 +141,10 @@ func ViewQuestion(c *gin.Context) {
answers = append(answers, template.HTML(answerBodyHTML))
})
imagePolicy := "https:"
imagePolicy := "'self' https:"
if c.MustGet("disable_images").(bool) {
imagePolicy = "'none'"
imagePolicy = "'self'"
}
c.HTML(200, "question.html", gin.H{