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">
|
2023-04-30 23:51:20 +08:00
|
|
|
<div class="gt-df">
|
2023-06-05 14:25:46 +08:00
|
|
|
<h1 class="gt-mb-3">{{.Milestone.Name}}</h1>
|
2019-01-24 02:58:38 +08:00
|
|
|
{{if not .Repository.IsArchived}}
|
2023-04-30 23:51:20 +08:00
|
|
|
<div class="text right gt-f1">
|
2019-03-15 23:50:27 +08:00
|
|
|
{{if or .CanWriteIssues .CanWritePulls}}
|
2023-04-03 06:40:43 +08:00
|
|
|
{{if .Milestone.IsClosed}}
|
2023-09-25 16:56:50 +08: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 06:40:43 +08:00
|
|
|
</a>
|
|
|
|
{{else}}
|
2023-09-25 16:56:50 +08: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 06:40:43 +08:00
|
|
|
</a>
|
|
|
|
{{end}}
|
2023-09-25 16:56:50 +08:00
|
|
|
<a class="ui button" href="{{.RepoLink}}/milestones/{{.MilestoneID}}/edit">{{ctx.Locale.Tr "repo.milestones.edit"}}</a>
|
2019-03-15 23:50:27 +08:00
|
|
|
{{end}}
|
2023-09-25 16:56:50 +08: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-24 02:58:38 +08:00
|
|
|
</div>
|
|
|
|
{{end}}
|
2018-11-29 09:46:30 +08:00
|
|
|
</div>
|
2023-06-05 14:25:46 +08:00
|
|
|
{{if .Milestone.RenderedContent}}
|
|
|
|
<div class="markup content gt-mb-4">
|
|
|
|
{{.Milestone.RenderedContent|Str2html}}
|
2021-05-21 05:53:55 +08:00
|
|
|
</div>
|
2023-06-05 14:25:46 +08:00
|
|
|
{{end}}
|
|
|
|
<div class="gt-df gt-fc gt-gap-3">
|
|
|
|
<progress class="milestone-progress-big" value="{{.Milestone.Completeness}}" max="100"></progress>
|
|
|
|
<div class="gt-df gt-gap-4">
|
|
|
|
<div classs="gt-df gt-ac">
|
2023-09-25 20:42:40 +08:00
|
|
|
{{$closedDate:= TimeSinceUnix .Milestone.ClosedDateUnix ctx.Locale}}
|
2023-06-05 14:25:46 +08:00
|
|
|
{{if .IsClosed}}
|
2023-09-25 16:56:50 +08:00
|
|
|
{{svg "octicon-clock"}} {{ctx.Locale.Tr "repo.milestones.closed" $closedDate | Safe}}
|
2021-04-11 11:46:37 +08:00
|
|
|
{{else}}
|
2023-06-22 09:59:49 +08:00
|
|
|
|
2023-06-05 14:25:46 +08:00
|
|
|
{{if .Milestone.DeadlineString}}
|
2023-06-22 09:59:49 +08:00
|
|
|
<span{{if .IsOverdue}} class="text red"{{end}}>
|
|
|
|
{{svg "octicon-calendar"}}
|
|
|
|
{{DateTime "short" .Milestone.DeadlineString}}
|
|
|
|
</span>
|
2023-06-05 14:25:46 +08:00
|
|
|
{{else}}
|
2023-06-22 09:59:49 +08:00
|
|
|
{{svg "octicon-calendar"}}
|
2023-09-25 16:56:50 +08:00
|
|
|
{{ctx.Locale.Tr "repo.milestones.no_due_date"}}
|
2023-06-05 14:25:46 +08:00
|
|
|
{{end}}
|
2021-04-11 11:46:37 +08:00
|
|
|
{{end}}
|
2023-06-05 14:25:46 +08:00
|
|
|
</div>
|
2023-09-25 16:56:50 +08:00
|
|
|
<div class="gt-mr-3">{{ctx.Locale.Tr "repo.milestones.completeness" .Milestone.Completeness | Safe}}</div>
|
2023-10-19 22:08:31 +08:00
|
|
|
{{if .TotalTrackedTime}}
|
|
|
|
<div data-tooltip-content='{{ctx.Locale.Tr "tracked_time_summary"}}'>
|
|
|
|
{{svg "octicon-clock"}}
|
|
|
|
{{.TotalTrackedTime | Sec2Time}}
|
|
|
|
</div>
|
|
|
|
{{end}}
|
2021-04-11 11:46:37 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
2023-06-29 20:24:22 +08:00
|
|
|
<div class="divider"></div>
|
2023-04-30 23:51:20 +08:00
|
|
|
|
2023-07-14 04:00:38 +08: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" .}}
|