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/discussion_new.html
raw
| 1 | {{define "content"}} |
| 2 | {{$dpath := discussionPath .BaseURL .Repo}} |
| 3 | <div class="discussion-thread"> |
| 4 | <h2>New discussion</h2> |
| 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="{{$dpath}}/new" novalidate> |
| 12 | <label for="title">Title</label> |
| 13 | <input type="text" id="title" name="title" value="{{.Data.Title}}" required maxlength="200" placeholder="Discussion title"> |
| 14 | <label for="body">Body</label> |
| 15 | <textarea id="body" name="body" rows="8" placeholder="Write your discussion…">{{.Data.Body}}</textarea> |
| 16 | <div class="form-actions"> |
| 17 | <button type="submit" class="btn">Create discussion</button> |
| 18 | <a href="{{$dpath}}">Cancel</a> |
| 19 | </div> |
| 20 | </form> |
| 21 | </div> |
| 22 | </div> |
| 23 | {{end}} |