taler-merchant-demos

Python-based Frontends for the Demonstration Web site
Log | Files | Refs | README | LICENSE

error.gohtml (660B)


      1 {{define "content"}}
      2   <section class="error-card">
      3   <h1>{{tr .Lang "Something went wrong"}}</h1>
      4   <p>{{.Content.Message}}</p>
      5   {{/* Translators: Label introducing technical diagnostic details on an error page. */}}
      6   {{if .Content.Details}}<p>{{tr .Lang "Details:"}}</p><pre>{{.Content.Details}}</pre>{{end}}
      7   {{if .Content.Status}}<p>{{trf .Lang "The merchant backend returned status code {code}." "code" .Content.Status}}</p>{{end}}
      8   {{/* Translators: Label introducing a raw response from the merchant backend on an error page. */}}
      9   {{if .Content.JSON}}<p>{{tr .Lang "Backend response:"}}</p><pre>{{.Content.JSON}}</pre>{{end}}
     10   </section>
     11 {{end}}