error.html 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <title>Error {{.Data.Code}} — a·muse</title>
  7. <link rel="stylesheet" href="/static/style/style.css" />
  8. <link rel="icon" type="image/svg+xml" href="/static/img/logo.svg">
  9. <link rel="apple-touch-icon" type="image/svg+xml" href="/static/img/logo.svg">
  10. </head>
  11. <body>
  12. <header class="w12 padding-bottom-_25 flex flex-row flex-justify-space flex-align-centre">
  13. <a href="/" class="decoration-none">
  14. <h1 class="inline valign-mid text sans margin-lr-1">a·muse</h1>
  15. </a>
  16. </header>
  17. <main class="margin-lr-1">
  18. <div class="font-2 w12 flex flex-centre margin-top-10">
  19. <div>
  20. <div class="centre sans">
  21. <span class="font-3">{{.Strings.Error.error}} {{.Data.Code}}</span><br/>
  22. <span class="font-2 text-grey">{{.GetErrorData .Data.Code "name"}}</span>
  23. </div>
  24. <div class="margin-top-10">
  25. <p>{{.GetErrorData .Data.Code "quote"}}</p>
  26. <p class="indent-2 sans">—{{.GetErrorData .Data.Code "character"}} (<span class="italic sans">{{.GetErrorData .Data.Code "title"}}</span>)</p>
  27. </div>
  28. {{if eq .Data.Code 401}}
  29. <div>
  30. <a href="/login" class="sans">{{.Strings.Global.login}}</a>
  31. <a href="/signup" class="sans">{{.Strings.Global.signup}}</a>
  32. </div>
  33. {{end}}
  34. {{if .Data.IsOnWantList}}
  35. <div class="centre">
  36. <form action="/users/{{.Data.User}}/watchlist/{{.Data.ItemType}}:{{.Data.ItemID}}" method="POST">
  37. <input type="hidden" name="method" value="DELETE" />
  38. <button type="submit" class="border-text sans margin-lr-1 hover-bg-grey padding-tb-_25 cursor-hand text"><span class="padding-lr-_5 material-icon">&#xe16c;</span><span class="sans padding-lr-_5">{{.Strings.Film.remove_want}}</span></button>
  39. </form>
  40. </div>
  41. {{end}}
  42. </div>
  43. </div>
  44. </main>
  45. </body>
  46. </html>