1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-20 09:18:36 +00:00

Add UI to delete tracked times (#14100)

Co-authored-by: 6543 <6543@obermui.de>
This commit is contained in:
Norwin
2021-02-19 10:52:11 +00:00
committed by GitHub
parent 6a696b93b1
commit d38ae597e1
13 changed files with 123 additions and 4 deletions

View File

@@ -723,6 +723,7 @@ func RegisterRoutes(m *web.Route) {
m.Combo("/comments").Post(repo.MustAllowUserComment, bindIgnErr(auth.CreateCommentForm{}), repo.NewComment)
m.Group("/times", func() {
m.Post("/add", bindIgnErr(auth.AddTimeManuallyForm{}), repo.AddTimeManually)
m.Post("/{timeid}/delete", repo.DeleteTime)
m.Group("/stopwatch", func() {
m.Post("/toggle", repo.IssueStopwatch)
m.Post("/cancel", repo.CancelStopwatch)