forgejo/templates/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
..
branch Improve English grammar and consistency. (#3614) 2018-04-19 17:24:31 +03:00
diff
editor Some small template fixes (#3820) 2018-04-20 08:25:15 +08:00
issue Shows total tracked time in issue and milestone list (#3341) 2018-04-29 13:58:47 +08:00
pulls
release Add Size column to attachment (#3734) 2018-03-31 09:10:44 +08:00
settings Some small template fixes (#3820) 2018-04-20 08:25:15 +08:00
wiki Some small template fixes (#3820) 2018-04-20 08:25:15 +08:00
activity.tmpl Fixed 0 closed issues not show 50% closed on activty page (#3802) 2018-04-16 08:26:53 +03:00
bare.tmpl
branch_dropdown.tmpl
commit_status.tmpl
commits.tmpl
commits_table.tmpl Modify pagination. (#3766) 2018-04-08 08:54:21 +08:00
create.tmpl Remove unnecessary Safe tags (#3778) 2018-04-10 06:43:37 +03:00
forks.tmpl
graph.tmpl
header.tmpl Fix for UI broke when a repo is starred & watched (#3630) (#3810) 2018-04-19 20:30:11 +08:00
home.tmpl Add topic support (#3711) 2018-04-11 10:51:44 +08:00
migrate.tmpl
search.tmpl
sub_menu.tmpl
user_cards.tmpl
view_file.tmpl
view_list.tmpl
watchers.tmpl