Download this file
| 1 | {{define "title"}}{{say "confirm.title"}}{{end}} |
| 2 | {{define "content"}} |
| 3 | <div class="receipt"> |
| 4 | {{if eq .State "offer"}} |
| 5 | <p class="receipt__mark">{{say "confirm.title"}}</p> |
| 6 | {{/* A button, not a redirect: mail scanners fetch every link in an |
| 7 | arriving message, and a GET that confirmed would put people on the |
| 8 | list who never clicked. */}} |
| 9 | <form class="slip" method="post" action="/confirm"> |
| 10 | <input type="hidden" name="token" value="{{.Token}}"> |
| 11 | <button type="submit" class="stamp">{{say "confirm.button"}}</button> |
| 12 | </form> |
| 13 | {{else if eq .State "done"}} |
| 14 | <p class="receipt__mark">{{say "confirm.done"}}</p> |
| 15 | {{else}} |
| 16 | <p class="receipt__mark">{{say "confirm.dead"}}</p> |
| 17 | {{end}} |
| 18 | </div> |
| 19 | {{end}} |
| 20 | |