You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gitea/modules/templates
K Kovacs 34692a20b1
Worktime tracking for the organization level (#19808)
Dear Gitea team,

first of all, thanks for the great work you're doing with this project.

I'm planning to introduce Gitea at a client site, and noticed that while
there is time recording, there are no project-manager-friendly reports
to actually make use of that data, as were also mentioned by others in
#4870 #8684 and #13531.

Since I had a little time last weekend, I had put together something
that I hope to be a useful contribution to this great project (while of
course useful for me too).

This PR adds a new "Worktime" tab to the Organisation level. There is a
date range selector (by default set to the current month), and there are
three possible views:

- by repository,
- by milestone, and
- by team member.

Happy to receive any feedback!

There are several possible future improvements of course (predefined
date ranges, charts, a member time sheet, matrix of repos/members, etc)
but I hope that even in this relatively simple state this would be
useful to lots of people.

<img width="1161" alt="Screen Shot 2022-05-25 at 22 12 58"
src="https://user-images.githubusercontent.com/118010/170366976-af00c7af-c4f3-4117-86d7-00356d6797a5.png">

Keep up the good work!

Kristof

---------

Co-authored-by: user <user@kk-git1>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
3 weeks ago
..
eval Use a general Eval function for expressions in templates. (#23927) 2 years ago
scopedtmpl Replace `interface{}` with `any` (#25686) 2 years ago
vars Implement FSFE REUSE for golang files (#21840) 2 years ago
base.go Replace `util.SliceXxx` with `slices.Xxx` (#26958) 1 year ago
dynamic.go Use a general approach to access custom/static/builtin assets (#24022) 2 years ago
helper.go Worktime tracking for the organization level (#19808) 3 weeks ago
helper_test.go Refactor HTMLFormat, update chroma render, fix js error (#33136) 2 months ago
htmlrenderer.go Refactor template & test related code (#32938) 2 months ago
htmlrenderer_test.go Show friendly 500 error page to users and developers (#24110) 2 years ago
mailer.go Refactor "string truncate" (#32984) 2 months ago
static.go Use a general approach to access custom/static/builtin assets (#24022) 2 years ago
templates_bindata.go Implement FSFE REUSE for golang files (#21840) 2 years ago
util_avatar.go Refactor markup render system (#32533) 3 months ago
util_date.go Update golangci-lint to v1.62.2, fix issues (#32845) 2 months ago
util_date_legacy.go Refactor template ctx and render utils (#32422) 4 months ago
util_date_test.go Refactor DateUtils and merge TimeSince (#32409) 4 months ago
util_dict.go Use `Set[Type]` instead of `map[Type]bool/struct{}`. (#26804) 2 years ago
util_format.go Refactor template & test related code (#32938) 2 months ago
util_format_test.go Refactor template & test related code (#32938) 2 months ago
util_json.go Improve template helper (#24417) 2 years ago
util_misc.go Make git clone URL could use current signed-in user (#33091) 2 months ago
util_render.go Fix issue title rendering and refactor legacy function names (#32703) 3 months ago
util_render_legacy.go Refactor template ctx and render utils (#32422) 4 months ago
util_render_test.go Fix issue title rendering and refactor legacy function names (#32703) 3 months ago
util_slice.go Improve template helper functions: string/slice (#24266) 2 years ago
util_string.go Refactor "string truncate" (#32984) 2 months ago
util_test.go Improve template helper functions: string/slice (#24266) 2 years ago