2015-07-24 04:50:05 +08:00
{{ template "base/head" . }}
2023-04-07 08:11:02 +08:00
<div role="main" aria-label=" {{ .Title }} " class="page-content repository issue-list">
2015-07-24 04:50:05 +08:00
{{ template "repo/header" . }}
2015-08-09 22:45:38 +08:00
<div class="ui container">
2024-03-21 23:07:35 +08:00
{{ template "base/alert" . }}
2023-05-25 15:17:19 +02:00
{{ if .PinnedIssues }}
<div id="issue-pins" {{ if .IsRepoAdmin }} data-is-repo-admin {{ end }} >
{{ range .PinnedIssues }}
2024-06-04 15:57:11 +02:00
<div class="issue-card tw-break-anywhere {{ if $ .IsRepoAdmin }} tw-cursor-grab {{ end }} " data-move-url=" {{ $ .Link }} /move_pin" data-issue-id=" {{ .ID }} ">
2023-08-12 12:30:28 +02:00
{{ template "repo/issue/card" ( dict "Issue" . "Page" $ "isPinnedIssueCard" true ) }}
2023-05-25 15:17:19 +02:00
</div>
{{ end }}
</div>
{{ end }}
2023-04-30 05:33:25 +02:00
<div class="list-header">
{{ template "repo/issue/navbar" . }}
{{ template "repo/issue/search" . }}
2019-01-23 19:58:38 +01:00
{{ if not .Repository .IsArchived }}
2023-04-30 05:33:25 +02:00
{{ if .PageIsIssueList }}
2023-09-25 10:56:50 +02:00
<a class="ui small primary button issue-list-new" href=" {{ .RepoLink }} /issues/new {{ if .NewIssueChooseTemplate }} /choose {{ end }} "> {{ ctx .Locale .Tr "repo.issues.new" }} </a>
2023-04-30 05:33:25 +02:00
{{ else }}
2023-09-25 10:56:50 +02:00
<a class="ui small primary button new-pr-button issue-list-new {{ if not .PullRequestCtx .Allowed }} disabled {{ end }} " href=" {{ if .PullRequestCtx .Allowed }} {{ .Repository .Link }} /compare/ {{ .Repository .DefaultBranch | PathEscapeSegments }} ... {{ if ne .Repository .Owner .Name .PullRequestCtx .BaseRepo .Owner .Name }} {{ PathEscape .Repository .Owner .Name }} : {{ end }} {{ .Repository .DefaultBranch | PathEscapeSegments }} {{ end }} "> {{ ctx .Locale .Tr "repo.pulls.new" }} </a>
2023-04-30 05:33:25 +02:00
{{ end }}
2019-06-29 11:18:49 +02:00
{{ else }}
{{ if not .PageIsIssueList }}
2023-09-25 10:56:50 +02:00
<a class="ui small primary small button issue-list-new {{ if not .PullRequestCtx .Allowed }} disabled {{ end }} " href=" {{ if .PullRequestCtx .Allowed }} {{ .PullRequestCtx .BaseRepo .Link }} /compare/ {{ .PullRequestCtx .BaseRepo .DefaultBranch | PathEscapeSegments }} ... {{ if ne .Repository .Owner .Name .PullRequestCtx .BaseRepo .Owner .Name }} {{ PathEscape .Repository .Owner .Name }} : {{ end }} {{ .Repository .DefaultBranch | PathEscapeSegments }} {{ end }} "> {{ ctx .Locale .Tr "action.compare_commits_general" }} </a>
2019-06-29 11:18:49 +02:00
{{ end }}
2019-01-23 19:58:38 +01:00
{{ end }}
2015-07-24 04:50:05 +08:00
</div>
2015-08-15 11:24:41 +08:00
2023-07-13 22:00:38 +02:00
{{ template "repo/issue/filters" . }}
2023-04-30 23:51:20 +08:00
2024-03-24 19:23:38 +01:00
<div id="issue-actions" class="issue-list-toolbar tw-hidden">
2023-04-30 23:51:20 +08:00
<div class="issue-list-toolbar-left">
2020-11-29 16:52:11 +01:00
{{ template "repo/issue/openclose" . }}
2023-10-19 16:08:31 +02:00
<!-- Total Tracked Time -->
{{ if .TotalTrackedTime }}
<div class="ui compact tiny secondary menu">
<span class="item" data-tooltip-content=' {{ ctx .Locale .Tr "tracked_time_summary" }} '>
{{ svg "octicon-clock" }}
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>
2025-02-02 18:51:12 +01:00
{{ .TotalTrackedTime | Sec2Hour }}
2023-10-19 16:08:31 +02:00
</span>
</div>
{{ end }}
2015-08-15 12:07:08 +08:00
</div>
2023-04-30 23:51:20 +08:00
<div class="issue-list-toolbar-right">
2023-10-01 18:34:39 +05:30
{{ template "repo/issue/filter_actions" . }}
2015-07-24 04:50:05 +08:00
</div>
</div>
2023-04-07 22:39:08 +08:00
{{ template "shared/issuelist" dict "." . "listType" "repo" }}
2015-07-24 04:50:05 +08:00
</div>
2014-03-25 23:00:26 +08:00
</div>
2015-07-30 22:14:52 +02:00
{{ template "base/footer" . }}