2018-11-29 09:46:30 +08:00
|
|
|
{{template "base/head" .}}
|
2023-04-07 08:11:02 +08:00
|
|
|
<div role="main" aria-label="{{.Title}}" class="page-content repository milestone-issue-list">
|
2018-11-29 09:46:30 +08:00
|
|
|
{{template "repo/header" .}}
|
|
|
|
<div class="ui container">
|
2024-03-21 23:07:35 +08:00
|
|
|
{{template "base/alert" .}}
|
2024-03-22 14:45:10 +01:00
|
|
|
<div class="tw-flex">
|
Migrate margin and padding helpers to tailwind (#30043)
This will conclude the refactor of 1:1 class replacements to tailwind,
except `gt-hidden`. Commands ran:
```bash
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-0#tw-$1$2-0#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-1#tw-$1$2-0.5#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-2#tw-$1$2-1#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-3#tw-$1$2-2#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-4#tw-$1$2-4#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-5#tw-$1$2-8#g' {web_src/js,templates,routers,services}/**/*
```
2024-03-24 17:42:49 +01:00
|
|
|
<h1 class="tw-mb-2">{{.Milestone.Name}}</h1>
|
2019-01-23 19:58:38 +01:00
|
|
|
{{if not .Repository.IsArchived}}
|
2024-03-22 14:45:10 +01:00
|
|
|
<div class="text right tw-flex-1">
|
2019-03-15 10:50:27 -05:00
|
|
|
{{if or .CanWriteIssues .CanWritePulls}}
|
2023-04-03 00:40:43 +02:00
|
|
|
{{if .Milestone.IsClosed}}
|
2023-09-25 10:56:50 +02:00
|
|
|
<a class="ui primary basic button link-action" href data-url="{{$.RepoLink}}/milestones/{{.MilestoneID}}/open">{{ctx.Locale.Tr "repo.milestones.open"}}
|
2023-04-03 00:40:43 +02:00
|
|
|
</a>
|
|
|
|
{{else}}
|
2023-09-25 10:56:50 +02:00
|
|
|
<a class="ui red basic button link-action" href data-url="{{$.RepoLink}}/milestones/{{.MilestoneID}}/close">{{ctx.Locale.Tr "repo.milestones.close"}}
|
2023-04-03 00:40:43 +02:00
|
|
|
</a>
|
|
|
|
{{end}}
|
2023-09-25 10:56:50 +02:00
|
|
|
<a class="ui button" href="{{.RepoLink}}/milestones/{{.MilestoneID}}/edit">{{ctx.Locale.Tr "repo.milestones.edit"}}</a>
|
2019-03-15 10:50:27 -05:00
|
|
|
{{end}}
|
2023-09-25 10:56:50 +02:00
|
|
|
<a class="ui primary button" href="{{.RepoLink}}/issues/new{{if .NewIssueChooseTemplate}}/choose{{end}}?milestone={{.MilestoneID}}">{{ctx.Locale.Tr "repo.issues.new"}}</a>
|
2019-01-23 19:58:38 +01:00
|
|
|
</div>
|
|
|
|
{{end}}
|
2018-11-29 09:46:30 +08:00
|
|
|
</div>
|
2023-06-05 08:25:46 +02:00
|
|
|
{{if .Milestone.RenderedContent}}
|
Migrate margin and padding helpers to tailwind (#30043)
This will conclude the refactor of 1:1 class replacements to tailwind,
except `gt-hidden`. Commands ran:
```bash
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-0#tw-$1$2-0#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-1#tw-$1$2-0.5#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-2#tw-$1$2-1#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-3#tw-$1$2-2#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-4#tw-$1$2-4#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-5#tw-$1$2-8#g' {web_src/js,templates,routers,services}/**/*
```
2024-03-24 17:42:49 +01:00
|
|
|
<div class="markup content tw-mb-4">
|
2024-03-01 15:11:51 +08:00
|
|
|
{{.Milestone.RenderedContent}}
|
2021-05-20 23:53:55 +02:00
|
|
|
</div>
|
2023-06-05 08:25:46 +02:00
|
|
|
{{end}}
|
2024-03-24 15:31:35 +01:00
|
|
|
<div class="tw-flex tw-flex-col tw-gap-2">
|
2023-06-05 08:25:46 +02:00
|
|
|
<progress class="milestone-progress-big" value="{{.Milestone.Completeness}}" max="100"></progress>
|
2024-03-24 15:31:35 +01:00
|
|
|
<div class="tw-flex tw-gap-4">
|
2024-03-22 20:51:29 +01:00
|
|
|
<div classs="tw-flex tw-items-center">
|
2024-11-04 19:30:00 +08:00
|
|
|
{{$closedDate:= DateUtils.TimeSince .Milestone.ClosedDateUnix}}
|
2023-06-05 08:25:46 +02:00
|
|
|
{{if .IsClosed}}
|
2024-02-23 01:02:33 +08:00
|
|
|
{{svg "octicon-clock"}} {{ctx.Locale.Tr "repo.milestones.closed" $closedDate}}
|
2021-04-11 05:46:37 +02:00
|
|
|
{{else}}
|
2023-06-22 03:59:49 +02:00
|
|
|
|
2023-06-05 08:25:46 +02:00
|
|
|
{{if .Milestone.DeadlineString}}
|
2023-06-22 03:59:49 +02:00
|
|
|
<span{{if .IsOverdue}} class="text red"{{end}}>
|
|
|
|
{{svg "octicon-calendar"}}
|
2024-11-04 19:30:00 +08:00
|
|
|
{{DateUtils.AbsoluteShort (.Milestone.DeadlineString|DateUtils.ParseLegacy)}}
|
2023-06-22 03:59:49 +02:00
|
|
|
</span>
|
2023-06-05 08:25:46 +02:00
|
|
|
{{else}}
|
2023-06-22 03:59:49 +02:00
|
|
|
{{svg "octicon-calendar"}}
|
2023-09-25 10:56:50 +02:00
|
|
|
{{ctx.Locale.Tr "repo.milestones.no_due_date"}}
|
2023-06-05 08:25:46 +02:00
|
|
|
{{end}}
|
2021-04-11 05:46:37 +02:00
|
|
|
{{end}}
|
2023-06-05 08:25:46 +02:00
|
|
|
</div>
|
Migrate margin and padding helpers to tailwind (#30043)
This will conclude the refactor of 1:1 class replacements to tailwind,
except `gt-hidden`. Commands ran:
```bash
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-0#tw-$1$2-0#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-1#tw-$1$2-0.5#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-2#tw-$1$2-1#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-3#tw-$1$2-2#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-4#tw-$1$2-4#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-5#tw-$1$2-8#g' {web_src/js,templates,routers,services}/**/*
```
2024-03-24 17:42:49 +01:00
|
|
|
<div class="tw-mr-2">{{ctx.Locale.Tr "repo.milestones.completeness" .Milestone.Completeness}}</div>
|
2023-10-19 16:08:31 +02:00
|
|
|
{{if .TotalTrackedTime}}
|
|
|
|
<div 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
|
|
|
</div>
|
|
|
|
{{end}}
|
2021-04-11 05:46:37 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2023-06-29 14:24:22 +02:00
|
|
|
<div class="divider"></div>
|
2023-04-30 23:51:20 +08:00
|
|
|
|
2023-07-13 22:00:38 +02:00
|
|
|
{{template "repo/issue/filters" .}}
|
2018-11-29 09:46:30 +08:00
|
|
|
|
2023-04-07 22:39:08 +08:00
|
|
|
{{template "shared/issuelist" dict "." . "listType" "milestone"}}
|
2018-11-29 09:46:30 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{template "base/footer" .}}
|