scripts/
static/
templates/
commit.html
2.0 KiB
discussion.html
1.7 KiB
discussion_new.html
801 B
discussions.html
959 B
error.html
266 B
home.html
2.8 KiB
index.html
506 B
layout.html
3.4 KiB
log.html
1.4 KiB
login.html
1.7 KiB
refs.html
1.2 KiB
.gitignore
30 B
.gitsigners
112 B
AGENTS.md
7.5 KiB
LICENSE
89 B
README.md
1.9 KiB
deploy
723 B
discuss.go
16.7 KiB
git.go
3.5 KiB
git_cli.go
16.0 KiB
git_http.go
1.9 KiB
go.mod
572 B
go.sum
1.9 KiB
handler.go
11.3 KiB
handler_test.go
69.0 KiB
main.go
5.2 KiB
template.go
8.9 KiB
watch
272 B
templates/login.html
raw
| 1 | {{define "content"}} |
| 2 | <div class="login-page"> |
| 3 | <h2>Sign in with <svg class="bsky-logo" viewBox="0 0 320 286" xmlns="http://www.w3.org/2000/svg"><path fill="#0a7aff" d="M69.364 19.146c36.687 27.806 76.147 84.186 90.636 114.439 14.489-30.253 53.948-86.633 90.636-114.439C277.107-.917 320-16.44 320 32.957c0 9.865-5.603 82.875-8.889 94.729-11.423 41.208-53.045 51.719-90.071 45.357 64.719 11.12 81.182 47.953 45.627 84.785-80 82.874-106.667-44.333-106.667-44.333s-26.667 127.207-106.667 44.333c-35.555-36.832-19.092-73.665 45.627-84.785-37.026 6.362-78.648-4.149-90.071-45.357C5.603 115.832 0 42.822 0 32.957 0-16.44 42.893-.917 69.364 19.147Z"/></svg> Bluesky</h2> |
| 4 | <p class="login-hint">Sign in with your <a href="https://bsky.app">Bluesky</a> account using an <a href="https://bsky.app/settings/app-passwords">app password</a>. Your app password is only sent to Bluesky to verify your identity and is not stored.</p> |
| 5 | |
| 6 | {{if .Data.Error}} |
| 7 | <p class="form-error">{{.Data.Error}}</p> |
| 8 | {{end}} |
| 9 | |
| 10 | <div class="discussion-form"> |
| 11 | <form method="POST" action="{{.BaseURL}}/login" onsubmit="this.querySelector('button[type=submit]').disabled=true"> |
| 12 | <input type="hidden" name="return" value="{{.Data.ReturnTo}}"> |
| 13 | <label for="handle">Bluesky handle</label> |
| 14 | <input type="text" id="handle" name="handle" value="{{.Data.Handle}}" required placeholder="alice.bsky.social"> |
| 15 | <label for="app_password">App password</label> |
| 16 | <input type="password" id="app_password" name="app_password" required placeholder="xxxx-xxxx-xxxx-xxxx"> |
| 17 | <div class="form-actions"> |
| 18 | <button type="submit" class="btn">Sign in</button> |
| 19 | <a href="{{.Data.ReturnTo}}">Cancel</a> |
| 20 | </div> |
| 21 | </form> |
| 22 | </div> |
| 23 | </div> |
| 24 | {{end}} |