1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-23 12:59:11 -05:00
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 Responsive view (#2750) 2017-12-30 18:47:52 -06:00
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 Responsive view (#2750) 2017-12-30 18:47:52 -06:00
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 Only show SSH clone URL if signed in (#2169) (#2170) 2017-07-15 22:21:51 +08:00
branch_dropdown.tmpl Escape branch name in dropdown menu (#3691) 2018-03-19 22:29:16 +08:00
commit_status.tmpl Spaces to tabs in templates (#2953) 2017-11-21 13:43:00 +08:00
commits.tmpl Responsive view (#2750) 2017-12-30 18:47:52 -06:00
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 #3348 always use relative avatar link in the template 2016-08-05 12:12:54 -07:00
graph.tmpl Fix issue link rendering in commit messages (#2897) 2017-11-13 09:35:55 +08:00
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 Add notice that LFS mirroring is not supported (#1251) 2017-03-16 19:33:22 +08:00
search.tmpl Don't warn users about *every* dirty form (#3707) 2018-03-23 22:10:42 +08:00
sub_menu.tmpl Minor copy changes (#3074) 2017-12-03 22:52:30 +02:00
user_cards.tmpl Refactor struct's time to remove unnecessary memory usage (#3142) 2017-12-11 06:37:04 +02:00
view_file.tmpl Responsive view (#2750) 2017-12-30 18:47:52 -06:00
view_list.tmpl Expandable commit bodies (#2980) 2017-11-30 13:08:40 +08:00
watchers.tmpl #1692 APIs: Users Followers 2015-12-21 04:24:11 -08:00