diff --git a/templates/footer.tmpl b/templates/footer.tmpl index 74eecbf..38cc8ee 100644 --- a/templates/footer.tmpl +++ b/templates/footer.tmpl @@ -2,6 +2,8 @@ {{ end }} diff --git a/templates/header.tmpl b/templates/header.tmpl index e9f571e..be968ca 100644 --- a/templates/header.tmpl +++ b/templates/header.tmpl @@ -19,6 +19,7 @@ Emission Schedule @@ -29,6 +30,7 @@ OP_RETURNs Transactions Emission Schedule + Tips Why? How? diff --git a/templates/tips.tmpl b/templates/tips.tmpl new file mode 100644 index 0000000..f2b7c96 --- /dev/null +++ b/templates/tips.tmpl @@ -0,0 +1,21 @@ +{{ define "content" }} +
+

Submit a Tip

+
+

While every effort is made to keep this list up to date, it is impossible to pick up on all losses without your help.

+

If you know of a transaction or address that destroys BTC and isn't covered here (simply try searching for it to check), you can submit a tip and help keep this list accurate and up to date.

+

If you've personally lost access to a BTC address or wallet, or know someone who has, you can also submit a tip to help others avoid the same fate. Wallet ownership and provenance is kept confidential by default.

+

Information to include

+

Try and include as much information as possible, such as:

+ +

Submitting a tip

+

Submit a tip over on the GitHub Repository. Alternatively, if you wish to contact me over a more private channel, you can submit information via email at tips@burned.money.

+
+
+{{ end }} + diff --git a/webui/webui.go b/webui/webui.go index 9c695c5..eaf984d 100644 --- a/webui/webui.go +++ b/webui/webui.go @@ -45,6 +45,7 @@ func (w *WebUI) Serve() { router.GET("/opreturns", w.OpReturns) router.GET("/opreturn/:opreturn", w.OpReturn) + router.GET("/tips", w.Tips) router.GET("/why", w.Why) router.GET("/methodology", w.Methodology) router.GET("/schedule", w.HalvingSchedule) @@ -103,6 +104,19 @@ func (w *WebUI) Index(c *gin.Context) { } } +func (w *WebUI) Tips(c *gin.Context) { + tmpl := templates.New() + err := tmpl.Render(c.Writer, "tips.tmpl", map[string]interface{}{ + "Title": "Tips - Submit a BTC loss", + }) + + if err != nil { + log.Error().Err(err).Msg("Failed to render template") + c.AbortWithError(http.StatusInternalServerError, err) + return + } +} + func (w *WebUI) Why(c *gin.Context) { tmpl := templates.New() err := tmpl.Render(c.Writer, "why.tmpl", map[string]interface{}{