accounts/templates.html (4540 bytes)
1 {{define "head"}}<!DOCTYPE html> 2 <html lang="en"> 3 <head> 4 <meta charset="UTF-8" /> 5 <meta name="viewport" content="width=device-width, initial-scale=1" /> 6 <meta name="robots" content="noindex" /> 7 <title>{{.}} — Recently Written</title> 8 <link rel="stylesheet" href="/style.css" /> 9 </head> 10 <body> 11 <div id="container"> 12 13 <div id="top"> 14 <a class="site-title" href="/index.html">Recently Written</a> 15 <nav> 16 <a href="/index.html">Home</a> 17 <a href="/rss.xml">rss</a> 18 <a href="/account/">subscribe</a> 19 </nav> 20 </div> 21 22 <h1 class="post-title">{{.}}</h1> 23 {{end}} 24 25 {{define "foot"}} 26 <div id="footer"> 27 <a href="/index.html">← Home</a> 28 <p class="more">More sites and apps: 29 <a href="https://subread.space/">SubRead</a> · 30 <a href="https://booksimulator.com/">Book Simulator</a> · 31 <a href="https://honjimaku.com/">honjimaku.com</a> · 32 <a href="https://sbmsync.com/">sbm Sync</a> · 33 <a href="https://dickt.store/">dickt.store</a> · 34 <a href="https://hentaibun.online/">hentaibun.online</a> · 35 <a href="https://mowimypopol.online/">mowimypopol.online</a> · 36 <a href="https://alljapanesealltheti.me/">AJATT mirror</a> · 37 <a href="/projects.html">all projects</a></p> 38 </div> 39 40 </div> 41 </body> 42 </html> 43 {{end}} 44 45 {{define "signin"}}{{template "head" "Subscribe"}} 46 <p>Get an email when a new post goes up, and a private feed for your 47 feed reader app. Type your address. We send you a link to sign in. You 48 need no password.</p> 49 {{if .Error}}<p><strong>{{.Error}}</strong></p>{{end}} 50 <form method="post" action="/account/signin"> 51 <input type="email" name="email" required maxlength="254" autocomplete="email" /> 52 <button type="submit">Send the link</button> 53 </form> 54 <p>The public feed needs no account: <a href="/rss.xml">rss.xml</a>.</p> 55 {{template "foot"}}{{end}} 56 57 {{define "sent"}}{{template "head" "Check your email"}} 58 <p>If the address is valid, a sign-in link is on its way. The link works 59 one time and expires in 15 minutes.</p> 60 {{template "foot"}}{{end}} 61 62 {{define "verify"}}{{template "head" "Sign in"}} 63 <form method="post" action="/account/verify"> 64 <input type="hidden" name="t" value="{{.}}" /> 65 <button type="submit">Sign in</button> 66 </form> 67 {{template "foot"}}{{end}} 68 69 {{define "badlink"}}{{template "head" "Link not valid"}} 70 <p>The link is not valid. It was used before, or it expired. 71 <a href="/account/">Ask for a new link</a>.</p> 72 {{template "foot"}}{{end}} 73 74 {{define "settings"}}{{template "head" "Your subscription"}} 75 <p>Signed in as {{.Email}}.</p> 76 77 <h2 class="section-heading">Email</h2> 78 <form method="post" action="/account/settings"> 79 <p><label><input type="checkbox" name="email_on" value="1"{{if .EmailOn}} checked{{end}} /> 80 Email me when a new post goes up</label></p> 81 {{if .Tags}}<p>Send posts with these tags (the private feed uses them too):</p> 82 {{range .Tags}}<p><label><input type="checkbox" name="tag" value="{{.Name}}"{{if .On}} checked{{end}} /> 83 {{.Name}}</label></p> 84 {{end}}{{end}} 85 <button type="submit">Save</button> 86 </form> 87 88 <h2 class="section-heading">Private feed</h2> 89 <p>Add this URL to a feed reader app on Android, iOS, or a computer 90 (for example Feedly, Inoreader, NetNewsWire, or Feeder). Keep it private.</p> 91 <p><input type="text" readonly value="{{.FeedURL}}" size="60" onclick="this.select()" /></p> 92 <form method="post" action="/account/feed/rotate"> 93 <button type="submit">Make a new URL</button> The old URL then stops working. 94 </form> 95 96 <h2 class="section-heading">Account</h2> 97 <form method="post" action="/account/signout"> 98 <button type="submit">Sign out</button> 99 </form> 100 <form method="post" action="/account/delete" onsubmit="return confirm('Delete your account?')"> 101 <p><button type="submit">Delete my account</button> 102 This removes your address and settings. You cannot undo it.</p> 103 </form> 104 {{template "foot"}}{{end}} 105 106 {{define "unsubscribe"}}{{template "head" "Unsubscribe"}} 107 <form method="post" action="/account/unsubscribe"> 108 <input type="hidden" name="t" value="{{.}}" /> 109 <button type="submit">Stop the emails</button> 110 </form> 111 {{template "foot"}}{{end}} 112 113 {{define "unsubscribed"}}{{template "head" "Unsubscribed"}} 114 <p>You get no more emails. To start them again, or to delete your 115 account, <a href="/account/">sign in</a>.</p> 116 {{template "foot"}}{{end}} 117 118 {{define "deleted"}}{{template "head" "Account deleted"}} 119 <p>We removed your account.</p> 120 {{template "foot"}}{{end}}