2019-12-15 14:20:08 +00:00
|
|
|
{{template "base/head" .}}
|
2023-02-01 22:56:10 +00:00
|
|
|
<div role="main" aria-label="{{.Title}}" class="page-content dashboard issues repository milestones">
|
2019-12-15 14:20:08 +00:00
|
|
|
{{template "user/dashboard/navbar" .}}
|
|
|
|
<div class="ui container">
|
2023-11-08 02:30:39 +00:00
|
|
|
<div class="flex-container">
|
|
|
|
<div class="flex-container-nav">
|
2024-03-08 21:02:05 +00:00
|
|
|
<div class="ui secondary vertical filter menu tw-bg-transparent">
|
2023-05-22 11:42:57 +00:00
|
|
|
<div class="item">
|
2023-09-25 08:56:50 +00:00
|
|
|
{{ctx.Locale.Tr "home.issues.in_your_repos"}}
|
2023-08-31 02:29:59 +00:00
|
|
|
<strong>{{.Total}}</strong>
|
2023-05-22 11:42:57 +00:00
|
|
|
</div>
|
2023-06-29 12:24:22 +00:00
|
|
|
<div class="divider"></div>
|
2019-12-15 14:20:08 +00:00
|
|
|
{{range .Repos}}
|
|
|
|
{{with $Repo := .}}
|
2024-03-20 05:56:42 +00:00
|
|
|
<a class="{{range $.RepoIDs}}{{if eq . $Repo.ID}}active{{end}}{{end}} repo name item" href="?repos=[
|
2021-11-16 18:18:25 +00:00
|
|
|
{{- 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 11:53:59 +00:00
|
|
|
]&sort={{$.SortType}}&state={{$.State}}&q={{$.Keyword}}" title="{{.FullName}}">
|
2019-12-15 14:20:08 +00:00
|
|
|
<span class="text truncate">{{$Repo.FullName}}</span>
|
2019-12-17 21:34:11 +00:00
|
|
|
<div class="ui {{if $.IsShowClosed}}red{{else}}green{{end}} label">{{index $.Counts $Repo.ID}}</div>
|
2019-12-15 14:20:08 +00:00
|
|
|
</a>
|
|
|
|
{{end}}
|
|
|
|
{{end}}
|
|
|
|
</div>
|
|
|
|
</div>
|
2023-11-08 02:30:39 +00:00
|
|
|
<div class="flex-container-main content">
|
2023-04-30 03:33:25 +00:00
|
|
|
<div class="list-header">
|
2023-06-18 10:31:42 +00:00
|
|
|
<div class="small-menu-items ui compact tiny menu list-header-toggle">
|
2024-03-20 06:58:10 +00:00
|
|
|
<a class="item{{if not .IsShowClosed}} active{{end}}" href="?repos=[{{range $.RepoIDs}}{{.}}%2C{{end}}]&sort={{$.SortType}}&state=open&q={{$.Keyword}}">
|
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}/**/*
```
(cherry picked from commit 68ec9b48592fe88765bcc3a73093d43c98b315de)
Conflicts:
routers/web/repo/view.go
templates/base/head_navbar.tmpl
templates/repo/code/recently_pushed_new_branches.tmpl
templates/repo/diff/box.tmpl
templates/repo/diff/compare.tmpl
templates/repo/diff/conversation.tmpl
templates/repo/header.tmpl
templates/repo/issue/filter_list.tmpl
templates/repo/issue/view_content/conversation.tmpl
templates/repo/issue/view_content/sidebar.tmpl
templates/repo/settings/options.tmpl
templates/repo/view_file.tmpl
templates/shared/user/blocked_users.tmpl
templates/status/500.tmpl
web_src/js/components/DashboardRepoList.vue
resolved by prefering Forgejo version and applying the
commands to all files
2024-03-24 16:42:49 +00:00
|
|
|
{{svg "octicon-milestone" 16 "tw-mr-2"}}
|
2023-09-25 12:42:40 +00:00
|
|
|
{{ctx.Locale.PrettyNumber .MilestoneStats.OpenCount}} {{ctx.Locale.Tr "repo.issues.open_title"}}
|
2023-04-30 03:33:25 +00:00
|
|
|
</a>
|
2024-03-20 06:58:10 +00:00
|
|
|
<a class="item{{if .IsShowClosed}} active{{end}}" href="?repos=[{{range $.RepoIDs}}{{.}}%2C{{end}}]&sort={{$.SortType}}&state=closed&q={{$.Keyword}}">
|
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}/**/*
```
(cherry picked from commit 68ec9b48592fe88765bcc3a73093d43c98b315de)
Conflicts:
routers/web/repo/view.go
templates/base/head_navbar.tmpl
templates/repo/code/recently_pushed_new_branches.tmpl
templates/repo/diff/box.tmpl
templates/repo/diff/compare.tmpl
templates/repo/diff/conversation.tmpl
templates/repo/header.tmpl
templates/repo/issue/filter_list.tmpl
templates/repo/issue/view_content/conversation.tmpl
templates/repo/issue/view_content/sidebar.tmpl
templates/repo/settings/options.tmpl
templates/repo/view_file.tmpl
templates/shared/user/blocked_users.tmpl
templates/status/500.tmpl
web_src/js/components/DashboardRepoList.vue
resolved by prefering Forgejo version and applying the
commands to all files
2024-03-24 16:42:49 +00:00
|
|
|
{{svg "octicon-check" 16 "tw-mr-2"}}
|
2023-09-25 12:42:40 +00:00
|
|
|
{{ctx.Locale.PrettyNumber .MilestoneStats.ClosedCount}} {{ctx.Locale.Tr "repo.issues.closed_title"}}
|
2023-04-30 03:33:25 +00:00
|
|
|
</a>
|
2019-12-15 14:20:08 +00:00
|
|
|
</div>
|
2023-04-30 03:33:25 +00:00
|
|
|
<form class="list-header-search ui form ignore-dirty">
|
2024-03-14 23:24:59 +00:00
|
|
|
<input type="hidden" name="type" value="{{$.ViewType}}">
|
2023-04-30 03:33:25 +00:00
|
|
|
<input type="hidden" name="repos" value="[{{range $.RepoIDs}}{{.}},{{end}}]">
|
|
|
|
<input type="hidden" name="sort" value="{{$.SortType}}">
|
|
|
|
<input type="hidden" name="state" value="{{$.State}}">
|
2024-03-14 23:24:59 +00:00
|
|
|
{{template "shared/search/combo" dict "Value" $.Keyword}}
|
2023-04-30 03:33:25 +00:00
|
|
|
</form>
|
|
|
|
<!-- Sort -->
|
|
|
|
<div class="list-header-sort ui dropdown type jump item">
|
|
|
|
<span class="text">
|
2023-09-25 08:56:50 +00:00
|
|
|
{{ctx.Locale.Tr "repo.issues.filter_sort"}}
|
2023-04-30 03:33:25 +00:00
|
|
|
</span>
|
2023-09-21 15:54:26 +00:00
|
|
|
{{svg "octicon-triangle-down" 14 "dropdown icon"}}
|
2023-04-30 03:33:25 +00:00
|
|
|
<div class="menu">
|
2024-03-20 05:56:42 +00:00
|
|
|
<a class="{{if or (eq .SortType "closestduedate") (not .SortType)}}active {{end}}item" href="?repos=[{{range $.RepoIDs}}{{.}}%2C{{end}}]&sort=closestduedate&state={{$.State}}&q={{$.Keyword}}">{{ctx.Locale.Tr "repo.milestones.filter_sort.earliest_due_data"}}</a>
|
|
|
|
<a class="{{if eq .SortType "furthestduedate"}}active {{end}}item" href="?repos=[{{range $.RepoIDs}}{{.}}%2C{{end}}]&sort=furthestduedate&state={{$.State}}&q={{$.Keyword}}">{{ctx.Locale.Tr "repo.milestones.filter_sort.latest_due_date"}}</a>
|
|
|
|
<a class="{{if eq .SortType "leastcomplete"}}active {{end}}item" href="?repos=[{{range $.RepoIDs}}{{.}}%2C{{end}}]&sort=leastcomplete&state={{$.State}}&q={{$.Keyword}}">{{ctx.Locale.Tr "repo.milestones.filter_sort.least_complete"}}</a>
|
|
|
|
<a class="{{if eq .SortType "mostcomplete"}}active {{end}}item" href="?repos=[{{range $.RepoIDs}}{{.}}%2C{{end}}]&sort=mostcomplete&state={{$.State}}&q={{$.Keyword}}">{{ctx.Locale.Tr "repo.milestones.filter_sort.most_complete"}}</a>
|
|
|
|
<a class="{{if eq .SortType "mostissues"}}active {{end}}item" href="?repos=[{{range $.RepoIDs}}{{.}}%2C{{end}}]&sort=mostissues&state={{$.State}}&q={{$.Keyword}}">{{ctx.Locale.Tr "repo.milestones.filter_sort.most_issues"}}</a>
|
|
|
|
<a class="{{if eq .SortType "leastissues"}}active {{end}}item" href="?repos=[{{range $.RepoIDs}}{{.}}%2C{{end}}]&sort=leastissues&state={{$.State}}&q={{$.Keyword}}">{{ctx.Locale.Tr "repo.milestones.filter_sort.least_issues"}}</a>
|
2024-07-22 13:01:36 +00:00
|
|
|
<a class="{{if eq .SortType "name"}}active {{end}}item" href="?repos=[{{range $.RepoIDs}}{{.}}%2C{{end}}]&sort=name&state={{$.State}}&q={{$.Keyword}}">{{ctx.Locale.Tr "repo.milestones.filter_sort.name"}}</a>
|
2021-04-08 11:53:59 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2021-04-11 03:46:37 +00:00
|
|
|
</div>
|
2023-06-18 10:31:42 +00:00
|
|
|
<div class="milestone-list">
|
2021-04-11 03:46:37 +00:00
|
|
|
{{range .Milestones}}
|
2023-06-18 10:31:42 +00:00
|
|
|
<li class="milestone-card">
|
|
|
|
<div class="milestone-header">
|
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}/**/*
```
(cherry picked from commit 68ec9b48592fe88765bcc3a73093d43c98b315de)
Conflicts:
routers/web/repo/view.go
templates/base/head_navbar.tmpl
templates/repo/code/recently_pushed_new_branches.tmpl
templates/repo/diff/box.tmpl
templates/repo/diff/compare.tmpl
templates/repo/diff/conversation.tmpl
templates/repo/header.tmpl
templates/repo/issue/filter_list.tmpl
templates/repo/issue/view_content/conversation.tmpl
templates/repo/issue/view_content/sidebar.tmpl
templates/repo/settings/options.tmpl
templates/repo/view_file.tmpl
templates/shared/user/blocked_users.tmpl
templates/status/500.tmpl
web_src/js/components/DashboardRepoList.vue
resolved by prefering Forgejo version and applying the
commands to all files
2024-03-24 16:42:49 +00:00
|
|
|
<h3 class="flex-text-block tw-m-0">
|
2023-06-18 10:31:42 +00:00
|
|
|
<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 03:19:09 +00:00
|
|
|
</h3>
|
2024-03-22 19:51:29 +00:00
|
|
|
<div class="tw-flex tw-items-center">
|
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}/**/*
```
(cherry picked from commit 68ec9b48592fe88765bcc3a73093d43c98b315de)
Conflicts:
routers/web/repo/view.go
templates/base/head_navbar.tmpl
templates/repo/code/recently_pushed_new_branches.tmpl
templates/repo/diff/box.tmpl
templates/repo/diff/compare.tmpl
templates/repo/diff/conversation.tmpl
templates/repo/header.tmpl
templates/repo/issue/filter_list.tmpl
templates/repo/issue/view_content/conversation.tmpl
templates/repo/issue/view_content/sidebar.tmpl
templates/repo/settings/options.tmpl
templates/repo/view_file.tmpl
templates/shared/user/blocked_users.tmpl
templates/status/500.tmpl
web_src/js/components/DashboardRepoList.vue
resolved by prefering Forgejo version and applying the
commands to all files
2024-03-24 16:42:49 +00:00
|
|
|
<span class="tw-mr-2">{{.Completeness}}%</span>
|
2022-05-20 03:04:45 +00:00
|
|
|
<progress value="{{.Completeness}}" max="100"></progress>
|
2021-04-11 03:46:37 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2023-06-18 10:31:42 +00:00
|
|
|
<div class="milestone-toolbar">
|
|
|
|
<div class="group">
|
|
|
|
<div class="flex-text-block">
|
|
|
|
{{svg "octicon-issue-opened" 14}}
|
2023-09-25 12:42:40 +00:00
|
|
|
{{ctx.Locale.PrettyNumber .NumOpenIssues}} {{ctx.Locale.Tr "repo.issues.open_title"}}
|
2023-06-18 10:31:42 +00:00
|
|
|
</div>
|
|
|
|
<div class="flex-text-block">
|
|
|
|
{{svg "octicon-check" 14}}
|
2023-09-25 12:42:40 +00:00
|
|
|
{{ctx.Locale.PrettyNumber .NumClosedIssues}} {{ctx.Locale.Tr "repo.issues.closed_title"}}
|
2023-06-18 10:31:42 +00:00
|
|
|
</div>
|
2022-06-12 12:08:23 +00:00
|
|
|
{{if .TotalTrackedTime}}
|
2023-06-18 10:31:42 +00:00
|
|
|
<div class="flex-text-block">
|
|
|
|
{{svg "octicon-clock"}}
|
|
|
|
{{.TotalTrackedTime|Sec2Time}}
|
|
|
|
</div>
|
2022-06-12 12:08:23 +00:00
|
|
|
{{end}}
|
2023-06-18 10:31:42 +00:00
|
|
|
{{if .UpdatedUnix}}
|
|
|
|
<div class="flex-text-block">
|
|
|
|
{{svg "octicon-clock"}}
|
2024-11-04 11:30:00 +00:00
|
|
|
{{ctx.Locale.Tr "repo.milestones.update_ago" (DateUtils.TimeSince .UpdatedUnix)}}
|
2023-06-18 10:31:42 +00:00
|
|
|
</div>
|
2021-04-11 03:46:37 +00:00
|
|
|
{{end}}
|
2023-06-18 10:31:42 +00:00
|
|
|
<div class="flex-text-block">
|
|
|
|
{{if .IsClosed}}
|
2024-11-04 11:30:00 +00:00
|
|
|
{{$closedDate:= DateUtils.TimeSince .ClosedDateUnix}}
|
2023-06-18 10:31:42 +00:00
|
|
|
{{svg "octicon-clock" 14}}
|
2024-02-22 17:02:33 +00:00
|
|
|
{{ctx.Locale.Tr "repo.milestones.closed" $closedDate}}
|
2023-06-18 10:31:42 +00:00
|
|
|
{{else}}
|
|
|
|
{{if .DeadlineString}}
|
2023-06-22 01:59:49 +00:00
|
|
|
<span{{if .IsOverdue}} class="text red"{{end}}>
|
|
|
|
{{svg "octicon-calendar" 14}}
|
2024-11-04 11:30:00 +00:00
|
|
|
{{DateUtils.AbsoluteShort (.DeadlineString|DateUtils.ParseLegacy)}}
|
2023-06-18 10:31:42 +00:00
|
|
|
</span>
|
|
|
|
{{else}}
|
2023-06-22 01:59:49 +00:00
|
|
|
{{svg "octicon-calendar" 14}}
|
2023-09-25 08:56:50 +00:00
|
|
|
{{ctx.Locale.Tr "repo.milestones.no_due_date"}}
|
2023-06-18 10:31:42 +00:00
|
|
|
{{end}}
|
|
|
|
{{end}}
|
|
|
|
</div>
|
2021-04-11 03:46:37 +00:00
|
|
|
</div>
|
2023-06-18 10:31:42 +00:00
|
|
|
{{if and (or $.CanWriteIssues $.CanWritePulls) (not $.Repository.IsArchived)}}
|
|
|
|
<div class="group">
|
2023-09-25 08:56:50 +00:00
|
|
|
<a class="flex-text-inline" href="{{$.Link}}/{{.ID}}/edit">{{svg "octicon-pencil" 14}}{{ctx.Locale.Tr "repo.issues.label_edit"}}</a>
|
2023-06-18 10:31:42 +00:00
|
|
|
{{if .IsClosed}}
|
2023-09-25 08:56:50 +00:00
|
|
|
<a class="link-action flex-text-inline" href data-url="{{$.Link}}/{{.ID}}/open">{{svg "octicon-check" 14}}{{ctx.Locale.Tr "repo.milestones.open"}}</a>
|
2023-06-18 10:31:42 +00:00
|
|
|
{{else}}
|
2023-09-25 08:56:50 +00:00
|
|
|
<a class="link-action flex-text-inline" href data-url="{{$.Link}}/{{.ID}}/close">{{svg "octicon-x" 14}}{{ctx.Locale.Tr "repo.milestones.close"}}</a>
|
2023-06-18 10:31:42 +00:00
|
|
|
{{end}}
|
2023-09-25 08:56:50 +00:00
|
|
|
<a class="delete-button flex-text-inline" href="#" data-url="{{$.RepoLink}}/milestones/delete" data-id="{{.ID}}">{{svg "octicon-trash" 14}}{{ctx.Locale.Tr "repo.issues.label_delete"}}</a>
|
2023-06-18 10:31:42 +00:00
|
|
|
</div>
|
|
|
|
{{end}}
|
|
|
|
</div>
|
2021-04-11 03:46:37 +00:00
|
|
|
{{if .Content}}
|
2022-01-07 03:49:27 +00:00
|
|
|
<div class="markup content">
|
2024-03-01 07:11:51 +00:00
|
|
|
{{.RenderedContent}}
|
2021-04-11 03:46:37 +00:00
|
|
|
</div>
|
|
|
|
{{end}}
|
|
|
|
</li>
|
|
|
|
{{end}}
|
2019-12-15 14:20:08 +00:00
|
|
|
|
2021-04-11 03:46:37 +00:00
|
|
|
{{template "base/paginate" .}}
|
|
|
|
</div>
|
2019-12-15 14:20:08 +00:00
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{template "base/footer" .}}
|