Skip to content

Commit

Permalink
Found and fixed another victim of the blanket removal of template.HTML.
Browse files Browse the repository at this point in the history
  • Loading branch information
vaughany committed Aug 22, 2021
1 parent 6f30857 commit dd11a83
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/receiver/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ HTMLData represents the data sent to the HTML template.
type HTMLData struct {
Title string
Subtitle string
Footer string
Footer template.HTML
Rows []rowData
}

Expand Down
2 changes: 1 addition & 1 deletion cmd/receiver/web.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func dashboardHandler(w http.ResponseWriter, r *http.Request) {
// Build the HTML.
data.Title = vcms.AppTitle
// data.Subtitle = "Something Something Darkside"
data.Footer = cmdFooterHTML
data.Footer = template.HTML(cmdFooterHTML)
for _, key := range keys {
var row rowData
if len(nodes[key].Meta.Errors) > 0 {
Expand Down

0 comments on commit dd11a83

Please sign in to comment.