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">
|
2024-03-21 20:37:35 +05:30
|
|
|
{{template "base/alert" .}}
|
2024-04-20 14:41:38 +05:30
|
|
|
<div class="tw-flex tw-items-center tw-justify-between">
|
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 22:12:49 +05:30
|
|
|
<h1 class="tw-mb-2">{{.Milestone.Name}}</h1>
|
2019-01-24 00:28:38 +05:30
|
|
|
{{if not .Repository.IsArchived}}
|
2024-04-20 14:41:38 +05:30
|
|
|
<div class="tw-flex top-right-buttons">
|
2019-03-15 21:20:27 +05:30
|
|
|
{{if or .CanWriteIssues .CanWritePulls}}
|
2023-04-03 04:10:43 +05:30
|
|
|
{{if .Milestone.IsClosed}}
|
2024-04-20 14:41:38 +05:30
|
|
|
<a class="ui primary button link-action" href data-url="{{$.RepoLink}}/milestones/{{.MilestoneID}}/open">{{ctx.Locale.Tr "repo.milestones.open"}}
|
2023-04-03 04:10:43 +05:30
|
|
|
</a>
|
|
|
|
{{else}}
|
2024-04-20 14:41:38 +05:30
|
|
|
<a class="ui red button link-action" href data-url="{{$.RepoLink}}/milestones/{{.MilestoneID}}/close">{{ctx.Locale.Tr "repo.milestones.close"}}
|
2023-04-03 04:10:43 +05:30
|
|
|
</a>
|
|
|
|
{{end}}
|
2023-09-25 14:26:50 +05:30
|
|
|
<a class="ui button" href="{{.RepoLink}}/milestones/{{.MilestoneID}}/edit">{{ctx.Locale.Tr "repo.milestones.edit"}}</a>
|
2019-03-15 21:20:27 +05:30
|
|
|
{{end}}
|
2023-09-25 14:26:50 +05:30
|
|
|
<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 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}}
|
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 22:12:49 +05:30
|
|
|
<div class="markup content tw-mb-4">
|
2024-03-01 12:41:51 +05:30
|
|
|
{{.Milestone.RenderedContent}}
|
2021-05-21 03:23:55 +05:30
|
|
|
</div>
|
2023-06-05 11:55:46 +05:30
|
|
|
{{end}}
|
2024-03-24 20:01:35 +05:30
|
|
|
<div class="tw-flex tw-flex-col tw-gap-2">
|
2023-06-05 11:55:46 +05:30
|
|
|
<progress class="milestone-progress-big" value="{{.Milestone.Completeness}}" max="100"></progress>
|
2024-03-24 20:01:35 +05:30
|
|
|
<div class="tw-flex tw-gap-4">
|
2024-03-23 01:21:29 +05:30
|
|
|
<div classs="tw-flex tw-items-center">
|
2023-09-25 18:12:40 +05:30
|
|
|
{{$closedDate:= TimeSinceUnix .Milestone.ClosedDateUnix ctx.Locale}}
|
2023-06-05 11:55:46 +05:30
|
|
|
{{if .IsClosed}}
|
2024-02-22 22:32:33 +05:30
|
|
|
{{svg "octicon-clock"}} {{ctx.Locale.Tr "repo.milestones.closed" $closedDate}}
|
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-09-25 14:26:50 +05:30
|
|
|
{{ctx.Locale.Tr "repo.milestones.no_due_date"}}
|
2023-06-05 11:55:46 +05:30
|
|
|
{{end}}
|
2021-04-11 09:16:37 +05:30
|
|
|
{{end}}
|
2023-06-05 11:55:46 +05:30
|
|
|
</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}/**/*
```
(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 22:12:49 +05:30
|
|
|
<div class="tw-mr-2">{{ctx.Locale.Tr "repo.milestones.completeness" .Milestone.Completeness}}</div>
|
2023-10-19 19:38:31 +05:30
|
|
|
{{if .TotalTrackedTime}}
|
|
|
|
<div data-tooltip-content='{{ctx.Locale.Tr "tracked_time_summary"}}'>
|
|
|
|
{{svg "octicon-clock"}}
|
|
|
|
{{.TotalTrackedTime | Sec2Time}}
|
|
|
|
</div>
|
|
|
|
{{end}}
|
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" .}}
|