1
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-12-04 14:46:57 -05: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 Handle refactor (#3339) 2018-01-10 23:34:17 +02:00
attachment.go Log attachment blocked events (#3615) 2018-03-05 08:51:10 +08:00
branch.go Handle refactor (#3339) 2018-01-10 23:34:17 +02:00
commit.go Handle refactor (#3339) 2018-01-10 23:34:17 +02:00
download.go Handle refactor (#3339) 2018-01-10 23:34:17 +02:00
editor.go Handle refactor (#3339) 2018-01-10 23:34:17 +02:00
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 Handle refactor (#3339) 2018-01-10 23:34:17 +02:00
issue_timetrack.go Handle refactor (#3339) 2018-01-10 23:34:17 +02:00
issue_watch.go Handle refactor (#3339) 2018-01-10 23:34:17 +02:00
issue.go Shows total tracked time in issue and milestone list (#3341) 2018-04-29 13:58:47 +08:00
main_test.go Unit tests for wiki routers (#3022) 2017-11-30 17:52:15 +02:00
middlewares.go Handle refactor (#3339) 2018-01-10 23:34:17 +02:00
pull.go Fix branch deletion for squash or rebase merged pull requests (#3425) 2018-01-30 14:29:39 +02:00
release_test.go Fix missing branch in release bug (#3108) 2017-12-08 13:22:02 +08:00
release.go Handle refactor (#3339) 2018-01-10 23:34:17 +02:00
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 Writable deploy keys (closes #671) (#3225) 2018-01-07 00:55:53 +02:00
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 Handle refactor (#3339) 2018-01-10 23:34:17 +02:00
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