2018-11-29 07:16:30 +05:30
|
|
|
{{template "base/head" .}}
|
2023-04-07 05:41:02 +05:30
|
|
|
<div role="main" aria-label="{{.Title}}" class="page-content repository milestone-issue-list">
|
2018-11-29 07:16:30 +05:30
|
|
|
{{template "repo/header" .}}
|
|
|
|
<div class="ui container">
|
2023-04-30 21:21:20 +05:30
|
|
|
<div class="gt-df">
|
2023-06-05 11:55:46 +05:30
|
|
|
<h1 class="gt-mb-3">{{.Milestone.Name}}</h1>
|
2019-01-24 00:28:38 +05:30
|
|
|
{{if not .Repository.IsArchived}}
|
2023-04-30 21:21:20 +05:30
|
|
|
<div class="text right gt-f1">
|
2019-03-15 21:20:27 +05:30
|
|
|
{{if or .CanWriteIssues .CanWritePulls}}
|
2023-04-03 04:10:43 +05:30
|
|
|
{{if .Milestone.IsClosed}}
|
|
|
|
<a class="ui green basic button link-action" href data-url="{{$.RepoLink}}/milestones/{{.MilestoneID}}/open">{{$.locale.Tr "repo.milestones.open"}}
|
|
|
|
</a>
|
|
|
|
{{else}}
|
|
|
|
<a class="ui red basic button link-action" href data-url="{{$.RepoLink}}/milestones/{{.MilestoneID}}/close">{{$.locale.Tr "repo.milestones.close"}}
|
|
|
|
</a>
|
|
|
|
{{end}}
|
2022-06-28 02:28:46 +05:30
|
|
|
<a class="ui button" href="{{.RepoLink}}/milestones/{{.MilestoneID}}/edit">{{.locale.Tr "repo.milestones.edit"}}</a>
|
2019-03-15 21:20:27 +05:30
|
|
|
{{end}}
|
2022-06-28 02:28:46 +05:30
|
|
|
<a class="ui primary button" href="{{.RepoLink}}/issues/new{{if .NewIssueChooseTemplate}}/choose{{end}}?milestone={{.MilestoneID}}">{{.locale.Tr "repo.issues.new"}}</a>
|
2019-01-24 00:28:38 +05:30
|
|
|
</div>
|
|
|
|
{{end}}
|
2018-11-29 07:16:30 +05:30
|
|
|
</div>
|
2023-06-05 11:55:46 +05:30
|
|
|
{{if .Milestone.RenderedContent}}
|
|
|
|
<div class="markup content gt-mb-4">
|
|
|
|
{{.Milestone.RenderedContent|Str2html}}
|
2021-05-21 03:23:55 +05:30
|
|
|
</div>
|
2023-06-05 11:55:46 +05:30
|
|
|
{{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">
|
|
|
|
{{$closedDate:= TimeSinceUnix .Milestone.ClosedDateUnix $.locale}}
|
|
|
|
{{if .IsClosed}}
|
|
|
|
{{svg "octicon-clock"}} {{$.locale.Tr "repo.milestones.closed" $closedDate | Safe}}
|
2021-04-11 09:16:37 +05:30
|
|
|
{{else}}
|
2023-06-22 07:29:49 +05:30
|
|
|
|
2023-06-05 11:55:46 +05:30
|
|
|
{{if .Milestone.DeadlineString}}
|
2023-06-22 07:29:49 +05:30
|
|
|
<span{{if .IsOverdue}} class="text red"{{end}}>
|
|
|
|
{{svg "octicon-calendar"}}
|
|
|
|
{{DateTime "short" .Milestone.DeadlineString}}
|
|
|
|
</span>
|
2023-06-05 11:55:46 +05:30
|
|
|
{{else}}
|
2023-06-22 07:29:49 +05:30
|
|
|
{{svg "octicon-calendar"}}
|
2023-06-05 11:55:46 +05:30
|
|
|
{{$.locale.Tr "repo.milestones.no_due_date"}}
|
|
|
|
{{end}}
|
2021-04-11 09:16:37 +05:30
|
|
|
{{end}}
|
2023-06-05 11:55:46 +05:30
|
|
|
</div>
|
|
|
|
<div class="gt-mr-3">{{.locale.Tr "repo.milestones.completeness" .Milestone.Completeness | Safe}}</div>
|
2021-04-11 09:16:37 +05:30
|
|
|
</div>
|
|
|
|
</div>
|
2023-06-29 17:54:22 +05:30
|
|
|
<div class="divider"></div>
|
2023-04-30 21:21:20 +05:30
|
|
|
|
2023-07-14 01:30:38 +05:30
|
|
|
{{template "repo/issue/filters" .}}
|
2018-11-29 07:16:30 +05:30
|
|
|
|
2023-04-07 20:09:08 +05:30
|
|
|
{{template "shared/issuelist" dict "." . "listType" "milestone"}}
|
2018-11-29 07:16:30 +05:30
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{template "base/footer" .}}
|