internal/web/templates/edit.html

191da4bb528ee095de7ce47d59ee2c8e456cf483
gitbay/internal/web/templates/edit.html

11 lines · 707 bytes

 1{{define "title"}}edit {{.Path}} · {{.Repo.OwnerName}}/{{.Repo.Name}}{{end}}
 2{{define "content"}}
 3<h1>edit {{.Repo.OwnerName}}/{{.Repo.Name}} : {{.Path}} @ {{.Ref}}</h1>
 4{{if .Error}}<p class="error" role="alert">{{.Error}}</p>{{end}}
 5<form method="post" action="/{{.Repo.OwnerName}}/{{.Repo.Name}}/edit/{{.Ref}}/{{.Path}}">
 6<p><textarea name="content" aria-label="File contents" rows="24" style="width:100%" spellcheck="false">{{.Content}}</textarea></p>
 7<p><input name="message" aria-label="Commit message" placeholder="commit message" style="width:60%">
 8<button type="submit">Commit to {{.Ref}}</button></p>
 9<p class="crumbs">this commit will be unsigned and authored as {{.Viewer}}</p>
10</form>
11{{end}}
Keyboard shortcuts

Global

⌘K
Command palette & jump
/
Focus search
?
Show this help
g d
Dashboard
g e
Explore repositories
g n
Notifications

Repository & editor

t
Find file in repository
y
Copy immutable SHA permalink
g c
Code tab
g i
Issues tab
g m
Merge requests tab
g b
Builds tab
⌘↵
Submit active form