Files
gitea/templates/user/dashboard
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 <[email protected]>

* Optimizing TotalTimes by using SumInt

Signed-off-by: Jonas Franz <[email protected]>

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

Signed-off-by: Jonas Franz <[email protected]>

* Logging error instead of ignoring it

Signed-off-by: Jonas Franz <[email protected]>

* Correcting spelling mistakes

Signed-off-by: Jonas Franz <[email protected]>

* Change error message to a short version

Signed-off-by: Jonas Franz <[email protected]>

* Add error handling to TotalTimes
Add variable for totalTimes

Signed-off-by: Jonas Franz <[email protected]>

* 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 <[email protected]>

* Fixed test + gofmt

Signed-off-by: Jonas Franz <[email protected]>

* Load TotalTrackedTimes via MilestoneList instead of single requests

Signed-off-by: Jonas Franz <[email protected]>

* Add documentation for MilestoneList

Signed-off-by: Jonas Franz <[email protected]>

* Add documentation for MilestoneList

Signed-off-by: Jonas Franz <[email protected]>

* Fix test

Signed-off-by: Jonas Franz <[email protected]>

* Change comment from SQL query to description

Signed-off-by: Jonas Franz <[email protected]>

* Fix unit test by using int64 instead of int

Signed-off-by: Jonas Franz <[email protected]>

* Fix unit test by using int64 instead of int

Signed-off-by: Jonas Franz <[email protected]>

* Check if timetracker is enabled

Signed-off-by: Jonas Franz <[email protected]>

* Fix test by enabling timetracking

Signed-off-by: Jonas Franz <[email protected]>
2018-04-29 13:58:47 +08:00
..
2017-12-30 18:47:52 -06:00
2017-12-30 18:47:52 -06:00
2017-12-30 18:47:52 -06:00