0
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-12-01 18:42:49 +01:00
gitea/routers/repo
Jonas Franz 8d5f58d834 Shows total tracked time in issue and milestone list (#3341)
* Show total tracked time in issue and milestone list
Show total tracked time at issue page

Signed-off-by: Jonas Franz <info@jonasfranz.software>

* Optimizing TotalTimes by using SumInt

Signed-off-by: Jonas Franz <info@jonasfranz.software>

* Fixing wrong total times for milestones caused by a missing JOIN
Adding unit tests for total times

Signed-off-by: Jonas Franz <info@jonasfranz.software>

* Logging error instead of ignoring it

Signed-off-by: Jonas Franz <info@jonasfranz.software>

* Correcting spelling mistakes

Signed-off-by: Jonas Franz <info@jonasfranz.software>

* Change error message to a short version

Signed-off-by: Jonas Franz <info@jonasfranz.software>

* Add error handling to TotalTimes
Add variable for totalTimes

Signed-off-by: Jonas Franz <info@jonasfranz.de>

* Introduce TotalTrackedTimes as variable of issue
Load TotalTrackedTimes by loading attributes of IssueList
Load TotalTrackedTimes by loading attributes of single issue
Add Sec2Time as helper to use it in templates

Signed-off-by: Jonas Franz <info@jonasfranz.software>

* Fixed test + gofmt

Signed-off-by: Jonas Franz <info@jonasfranz.software>

* Load TotalTrackedTimes via MilestoneList instead of single requests

Signed-off-by: Jonas Franz <info@jonasfranz.software>

* Add documentation for MilestoneList

Signed-off-by: Jonas Franz <info@jonasfranz.software>

* Add documentation for MilestoneList

Signed-off-by: Jonas Franz <info@jonasfranz.software>

* Fix test

Signed-off-by: Jonas Franz <info@jonasfranz.software>

* Change comment from SQL query to description

Signed-off-by: Jonas Franz <info@jonasfranz.software>

* Fix unit test by using int64 instead of int

Signed-off-by: Jonas Franz <info@jonasfranz.software>

* Fix unit test by using int64 instead of int

Signed-off-by: Jonas Franz <info@jonasfranz.software>

* Check if timetracker is enabled

Signed-off-by: Jonas Franz <info@jonasfranz.software>

* Fix test by enabling timetracking

Signed-off-by: Jonas Franz <info@jonasfranz.de>
2018-04-29 13:58:47 +08:00
..
activity.go
attachment.go Log attachment blocked events (#3615) 2018-03-05 08:51:10 +08:00
branch.go
commit.go
download.go
editor.go
http.go Correctly check http git access rights for reverse proxy authorized users (#3721) 2018-03-29 09:39:51 +08:00
issue_label_test.go fix go vet error (#3740) 2018-03-30 07:21:27 +08:00
issue_label.go Add label descriptions (#3662) 2018-03-13 10:03:55 +08:00
issue_stopwatch.go
issue_timetrack.go
issue_watch.go
issue.go Shows total tracked time in issue and milestone list (#3341) 2018-04-29 13:58:47 +08:00
main_test.go
middlewares.go
pull.go
release_test.go
release.go
repo.go Refactor and simplify redirect to url (#3674) 2018-03-15 22:13:34 +01:00
search.go Global code search support (#3664) 2018-03-16 22:04:33 +08:00
setting_protected_branch.go Add protected branch whitelists for merging (#3689) 2018-03-25 13:01:32 +03:00
setting.go Add repository setting to enable/disable health checks (#3607) 2018-03-27 22:13:20 +08:00
settings_test.go
topic.go Add topic support (#3711) 2018-04-11 10:51:44 +08:00
view.go Add topic support (#3711) 2018-04-11 10:51:44 +08:00
webhook.go
wiki_test.go Improve wiki test (#3493) 2018-02-13 11:19:49 +02:00
wiki.go Fix rendering of wiki page list if wiki repo contains other files (#3454) 2018-02-05 16:56:30 +02:00