2019-12-15 19:50:08 +05:30
|
|
|
{{template "base/head" .}}
|
2023-02-02 04:26:10 +05:30
|
|
|
<div role="main" aria-label="{{.Title}}" class="page-content dashboard issues repository milestones">
|
2019-12-15 19:50:08 +05:30
|
|
|
{{template "user/dashboard/navbar" .}}
|
|
|
|
<div class="ui container">
|
|
|
|
<div class="ui stackable grid">
|
|
|
|
<div class="four wide column">
|
2023-05-18 12:57:29 +05:30
|
|
|
<div class="ui secondary vertical filter menu gt-bg-transparent">
|
2023-05-22 17:12:57 +05:30
|
|
|
<div class="item">
|
2022-06-28 02:28:46 +05:30
|
|
|
{{.locale.Tr "home.issues.in_your_repos"}}
|
2019-12-15 19:50:08 +05:30
|
|
|
<strong class="ui right">{{.Total}}</strong>
|
2023-05-22 17:12:57 +05:30
|
|
|
</div>
|
2023-06-29 17:54:22 +05:30
|
|
|
<div class="divider"></div>
|
2019-12-15 19:50:08 +05:30
|
|
|
{{range .Repos}}
|
|
|
|
{{with $Repo := .}}
|
2023-05-31 16:14:28 +05:30
|
|
|
<a class="{{range $.RepoIDs}}{{if eq . $Repo.ID}}active{{end}}{{end}} repo name item" href="{{$.Link}}?repos=[
|
2021-11-16 23:48:25 +05:30
|
|
|
{{- with $include := true -}}
|
|
|
|
{{- range $.RepoIDs -}}
|
|
|
|
{{- if eq . $Repo.ID -}}
|
|
|
|
{{$include = false}}
|
|
|
|
{{- else -}}
|
|
|
|
{{.}}%2C
|
|
|
|
{{- end -}}
|
|
|
|
{{- end -}}
|
|
|
|
{{- if eq $include true -}}
|
|
|
|
{{$Repo.ID}}%2C
|
|
|
|
{{- end -}}
|
|
|
|
{{- end -}}
|
2021-04-08 17:23:59 +05:30
|
|
|
]&sort={{$.SortType}}&state={{$.State}}&q={{$.Keyword}}" title="{{.FullName}}">
|
2019-12-15 19:50:08 +05:30
|
|
|
<span class="text truncate">{{$Repo.FullName}}</span>
|
2019-12-18 03:04:11 +05:30
|
|
|
<div class="ui {{if $.IsShowClosed}}red{{else}}green{{end}} label">{{index $.Counts $Repo.ID}}</div>
|
2019-12-15 19:50:08 +05:30
|
|
|
</a>
|
|
|
|
{{end}}
|
|
|
|
{{end}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="twelve wide column content">
|
2023-04-30 09:03:25 +05:30
|
|
|
<div class="list-header">
|
2023-06-18 16:01:42 +05:30
|
|
|
<div class="small-menu-items ui compact tiny menu list-header-toggle">
|
2023-04-30 09:03:25 +05:30
|
|
|
<a class="item{{if not .IsShowClosed}} active{{end}}" href="{{.Link}}?repos=[{{range $.RepoIDs}}{{.}}%2C{{end}}]&sort={{$.SortType}}&state=open&q={{$.Keyword}}">
|
|
|
|
{{svg "octicon-milestone" 16 "gt-mr-3"}}
|
|
|
|
{{.locale.PrettyNumber .MilestoneStats.OpenCount}} {{.locale.Tr "repo.issues.open_title"}}
|
|
|
|
</a>
|
|
|
|
<a class="item{{if .IsShowClosed}} active{{end}}" href="{{.Link}}?repos=[{{range $.RepoIDs}}{{.}}%2C{{end}}]&sort={{$.SortType}}&state=closed&q={{$.Keyword}}">
|
|
|
|
{{svg "octicon-check" 16 "gt-mr-3"}}
|
|
|
|
{{.locale.PrettyNumber .MilestoneStats.ClosedCount}} {{.locale.Tr "repo.issues.closed_title"}}
|
|
|
|
</a>
|
2019-12-15 19:50:08 +05:30
|
|
|
</div>
|
2023-04-30 09:03:25 +05:30
|
|
|
<form class="list-header-search ui form ignore-dirty">
|
|
|
|
<div class="ui small search fluid action input">
|
|
|
|
<input type="hidden" name="type" value="{{$.ViewType}}">
|
|
|
|
<input type="hidden" name="repos" value="[{{range $.RepoIDs}}{{.}},{{end}}]">
|
|
|
|
<input type="hidden" name="sort" value="{{$.SortType}}">
|
|
|
|
<input type="hidden" name="state" value="{{$.State}}">
|
2023-06-22 15:57:35 +05:30
|
|
|
{{template "shared/searchinput" dict "locale" .locale "Value" $.Keyword}}
|
2023-04-30 09:03:25 +05:30
|
|
|
<button class="ui small icon button" type="submit" aria-label="{{.locale.Tr "explore.search"}}">{{svg "octicon-search"}}</button>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
<!-- Sort -->
|
|
|
|
<div class="list-header-sort ui dropdown type jump item">
|
|
|
|
<span class="text">
|
|
|
|
{{.locale.Tr "repo.issues.filter_sort"}}
|
|
|
|
{{svg "octicon-triangle-down" 14 "dropdown icon"}}
|
|
|
|
</span>
|
|
|
|
<div class="menu">
|
|
|
|
<a class="{{if or (eq .SortType "closestduedate") (not .SortType)}}active {{end}}item" href="{{$.Link}}?repos=[{{range $.RepoIDs}}{{.}}%2C{{end}}]&sort=closestduedate&state={{$.State}}&q={{$.Keyword}}">{{.locale.Tr "repo.milestones.filter_sort.closest_due_date"}}</a>
|
|
|
|
<a class="{{if eq .SortType "furthestduedate"}}active {{end}}item" href="{{$.Link}}?repos=[{{range $.RepoIDs}}{{.}}%2C{{end}}]&sort=furthestduedate&state={{$.State}}&q={{$.Keyword}}">{{.locale.Tr "repo.milestones.filter_sort.furthest_due_date"}}</a>
|
|
|
|
<a class="{{if eq .SortType "leastcomplete"}}active {{end}}item" href="{{$.Link}}?repos=[{{range $.RepoIDs}}{{.}}%2C{{end}}]&sort=leastcomplete&state={{$.State}}&q={{$.Keyword}}">{{.locale.Tr "repo.milestones.filter_sort.least_complete"}}</a>
|
|
|
|
<a class="{{if eq .SortType "mostcomplete"}}active {{end}}item" href="{{$.Link}}?repos=[{{range $.RepoIDs}}{{.}}%2C{{end}}]&sort=mostcomplete&state={{$.State}}&q={{$.Keyword}}">{{.locale.Tr "repo.milestones.filter_sort.most_complete"}}</a>
|
|
|
|
<a class="{{if eq .SortType "mostissues"}}active {{end}}item" href="{{$.Link}}?repos=[{{range $.RepoIDs}}{{.}}%2C{{end}}]&sort=mostissues&state={{$.State}}&q={{$.Keyword}}">{{.locale.Tr "repo.milestones.filter_sort.most_issues"}}</a>
|
|
|
|
<a class="{{if eq .SortType "leastissues"}}active {{end}}item" href="{{$.Link}}?repos=[{{range $.RepoIDs}}{{.}}%2C{{end}}]&sort=leastissues&state={{$.State}}&q={{$.Keyword}}">{{.locale.Tr "repo.milestones.filter_sort.least_issues"}}</a>
|
2021-04-08 17:23:59 +05:30
|
|
|
</div>
|
|
|
|
</div>
|
2021-04-11 09:16:37 +05:30
|
|
|
</div>
|
2023-06-18 16:01:42 +05:30
|
|
|
<div class="milestone-list">
|
2021-04-11 09:16:37 +05:30
|
|
|
{{range .Milestones}}
|
2023-06-18 16:01:42 +05:30
|
|
|
<li class="milestone-card">
|
|
|
|
<div class="milestone-header">
|
|
|
|
<h3 class="flex-text-block gt-m-0">
|
|
|
|
<span class="ui large label">
|
|
|
|
{{.Repo.FullName}}
|
|
|
|
</span>
|
|
|
|
{{svg "octicon-milestone" 16}}
|
|
|
|
<a class="muted" href="{{.Repo.Link}}/milestone/{{.ID}}">{{.Name}}</a>
|
2023-02-12 08:49:09 +05:30
|
|
|
</h3>
|
2023-02-13 23:29:59 +05:30
|
|
|
<div class="gt-df gt-ac">
|
|
|
|
<span class="gt-mr-3">{{.Completeness}}%</span>
|
2022-05-20 08:34:45 +05:30
|
|
|
<progress value="{{.Completeness}}" max="100"></progress>
|
2021-04-11 09:16:37 +05:30
|
|
|
</div>
|
|
|
|
</div>
|
2023-06-18 16:01:42 +05:30
|
|
|
<div class="milestone-toolbar">
|
|
|
|
<div class="group">
|
|
|
|
<div class="flex-text-block">
|
|
|
|
{{svg "octicon-issue-opened" 14}}
|
|
|
|
{{$.locale.PrettyNumber .NumOpenIssues}} {{$.locale.Tr "repo.issues.open_title"}}
|
|
|
|
</div>
|
|
|
|
<div class="flex-text-block">
|
|
|
|
{{svg "octicon-check" 14}}
|
|
|
|
{{$.locale.PrettyNumber .NumClosedIssues}} {{$.locale.Tr "repo.issues.closed_title"}}
|
|
|
|
</div>
|
2022-06-12 17:38:23 +05:30
|
|
|
{{if .TotalTrackedTime}}
|
2023-06-18 16:01:42 +05:30
|
|
|
<div class="flex-text-block">
|
|
|
|
{{svg "octicon-clock"}}
|
|
|
|
{{.TotalTrackedTime|Sec2Time}}
|
|
|
|
</div>
|
2022-06-12 17:38:23 +05:30
|
|
|
{{end}}
|
2023-06-18 16:01:42 +05:30
|
|
|
{{if .UpdatedUnix}}
|
|
|
|
<div class="flex-text-block">
|
|
|
|
{{svg "octicon-clock"}}
|
|
|
|
{{$.locale.Tr "repo.milestones.update_ago" (TimeSinceUnix .UpdatedUnix $.locale) | Safe}}
|
|
|
|
</div>
|
2021-04-11 09:16:37 +05:30
|
|
|
{{end}}
|
2023-06-18 16:01:42 +05:30
|
|
|
<div class="flex-text-block">
|
|
|
|
{{if .IsClosed}}
|
|
|
|
{{$closedDate:= TimeSinceUnix .ClosedDateUnix $.locale}}
|
|
|
|
{{svg "octicon-clock" 14}}
|
|
|
|
{{$.locale.Tr "repo.milestones.closed" $closedDate | Safe}}
|
|
|
|
{{else}}
|
|
|
|
{{if .DeadlineString}}
|
2023-06-22 07:29:49 +05:30
|
|
|
<span{{if .IsOverdue}} class="text red"{{end}}>
|
|
|
|
{{svg "octicon-calendar" 14}}
|
2023-06-18 16:01:42 +05:30
|
|
|
{{DateTime "short" .DeadlineString}}
|
|
|
|
</span>
|
|
|
|
{{else}}
|
2023-06-22 07:29:49 +05:30
|
|
|
{{svg "octicon-calendar" 14}}
|
2023-06-18 16:01:42 +05:30
|
|
|
{{$.locale.Tr "repo.milestones.no_due_date"}}
|
|
|
|
{{end}}
|
|
|
|
{{end}}
|
|
|
|
</div>
|
2021-04-11 09:16:37 +05:30
|
|
|
</div>
|
2023-06-18 16:01:42 +05:30
|
|
|
{{if and (or $.CanWriteIssues $.CanWritePulls) (not $.Repository.IsArchived)}}
|
|
|
|
<div class="group">
|
|
|
|
<a class="flex-text-inline" href="{{$.Link}}/{{.ID}}/edit">{{svg "octicon-pencil" 14}}{{$.locale.Tr "repo.issues.label_edit"}}</a>
|
|
|
|
{{if .IsClosed}}
|
|
|
|
<a class="link-action flex-text-inline" href data-url="{{$.Link}}/{{.ID}}/open">{{svg "octicon-check" 14}}{{$.locale.Tr "repo.milestones.open"}}</a>
|
|
|
|
{{else}}
|
|
|
|
<a class="link-action flex-text-inline" href data-url="{{$.Link}}/{{.ID}}/close">{{svg "octicon-x" 14}}{{$.locale.Tr "repo.milestones.close"}}</a>
|
|
|
|
{{end}}
|
2023-06-29 13:47:18 +05:30
|
|
|
<a class="delete-button flex-text-inline" href="#" data-url="{{$.RepoLink}}/milestones/delete" data-id="{{.ID}}">{{svg "octicon-trash" 14}}{{$.locale.Tr "repo.issues.label_delete"}}</a>
|
2023-06-18 16:01:42 +05:30
|
|
|
</div>
|
|
|
|
{{end}}
|
|
|
|
</div>
|
2021-04-11 09:16:37 +05:30
|
|
|
{{if .Content}}
|
2022-01-07 09:19:27 +05:30
|
|
|
<div class="markup content">
|
2021-04-11 09:16:37 +05:30
|
|
|
{{.RenderedContent|Str2html}}
|
|
|
|
</div>
|
|
|
|
{{end}}
|
|
|
|
</li>
|
|
|
|
{{end}}
|
2019-12-15 19:50:08 +05:30
|
|
|
|
2021-04-11 09:16:37 +05:30
|
|
|
{{template "base/paginate" .}}
|
|
|
|
</div>
|
2019-12-15 19:50:08 +05:30
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{template "base/footer" .}}
|