flounder

A simple gemini site builder
Log | Files | Refs | README | LICENSE

commit 345c439f7abc16601227fb4bef930f34ad5ab287
parent c7d2aca283929b5d18a22074b0542ca7cf4f622a
Author: alex wennerberg <alex@alexwennerberg.com>
Date:   Sat,  9 Jan 2021 14:16:25 -0800

Update templates, db schema

Diffstat:
Mdb.go | 4+++-
Mtemplates/me.html | 10+++++++++-
2 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/db.go b/db.go @@ -179,7 +179,9 @@ func createTablesIfDNE() { reference TEXT NOT NULL default "", active boolean NOT NULL DEFAULT false, admin boolean NOT NULL DEFAULT false, - created_at INTEGER DEFAULT (strftime('%s', 'now')) + created_at INTEGER DEFAULT (strftime('%s', 'now')), + domain TEXT, + domain_enabled BOOLEAN NOT NULL DEFAULT false ); CREATE TABLE IF NOT EXISTS cookie_key ( diff --git a/templates/me.html b/templates/me.html @@ -1,10 +1,11 @@ {{template "header" .}} <h1>My Account</h1> {{template "nav.html" .}} +<br> <form action="/me" method="post"> <div> <label for="username">Username</label><br> - <div class="footer">Note: renaming your account will cause links to your pages to break</div> + <em >Note: renaming your account will cause links to your pages to break</em> <input id="username" name="username" @@ -17,6 +18,13 @@ <label for="email">Email</label><br> <input id="email" name="email" size="32" type="text" value="{{.Email}}" /> </div> + <div> + <details> + <summary><label for="domain">Custom domain</label></summary> + <em>For more information on setting up a custom domain, see <a href="https://admin.flounder.online/custom-domains.gmi">Custom Domains</a></em> + <input id="domain" name="domain" size="32" type="text" /> enabled/disabled + </details> + </div> <div class="error">{{ range .Errors}}{{.}}<br>{{end}} </div> <div> <input