2023-05-29 12:44:03 +02:00
|
|
|
<div class="issue-content-right ui segment">
|
2024-04-24 20:41:35 +02:00
|
|
|
{{template "repo/issue/view_content/sidebar/branch_selector_field" .}}
|
2023-05-29 12:44:03 +02:00
|
|
|
{{if .Issue.IsPull}}
|
2024-04-24 21:06:22 +02:00
|
|
|
{{template "repo/issue/view_content/sidebar/pull_review" .}}
|
|
|
|
{{template "repo/issue/view_content/sidebar/pull_wip" .}}
|
2023-06-29 14:24:22 +02:00
|
|
|
<div class="divider"></div>
|
2023-05-29 12:44:03 +02:00
|
|
|
{{end}}
|
|
|
|
|
|
|
|
{{template "repo/issue/labels/labels_selector_field" .}}
|
|
|
|
{{template "repo/issue/labels/labels_sidebar" dict "root" $}}
|
|
|
|
|
2023-06-29 14:24:22 +02:00
|
|
|
<div class="divider"></div>
|
2020-04-06 18:33:34 +02:00
|
|
|
|
2024-04-24 22:54:55 +02:00
|
|
|
{{template "repo/issue/view_content/sidebar/milestones" .}}
|
2024-03-08 05:33:52 +01:00
|
|
|
<div class="divider"></div>
|
2017-03-17 06:57:43 +01:00
|
|
|
|
2024-04-24 22:54:55 +02:00
|
|
|
{{template "repo/issue/view_content/sidebar/projects" .}}
|
2023-06-29 14:24:22 +02:00
|
|
|
<div class="divider"></div>
|
2020-11-29 07:22:04 +01:00
|
|
|
|
2024-04-24 22:58:03 +02:00
|
|
|
{{template "repo/issue/view_content/sidebar/assignees" .}}
|
2023-06-29 14:24:22 +02:00
|
|
|
<div class="divider"></div>
|
2017-03-17 06:57:43 +01:00
|
|
|
|
2023-05-29 12:44:03 +02:00
|
|
|
{{if .Participants}}
|
2024-04-24 23:01:03 +02:00
|
|
|
{{template "repo/issue/view_content/sidebar/participants" .}}
|
2023-05-29 12:44:03 +02:00
|
|
|
{{end}}
|
2017-03-17 06:57:43 +01:00
|
|
|
|
2023-05-29 12:44:03 +02:00
|
|
|
{{if and $.IssueWatch (not .Repository.IsArchived)}}
|
2023-06-29 14:24:22 +02:00
|
|
|
<div class="divider"></div>
|
2017-03-17 06:57:43 +01:00
|
|
|
|
2024-04-24 23:03:47 +02:00
|
|
|
{{template "repo/issue/view_content/sidebar/watch" .}}
|
2023-05-29 12:44:03 +02:00
|
|
|
{{end}}
|
2024-04-24 23:03:47 +02:00
|
|
|
|
2023-05-29 12:44:03 +02:00
|
|
|
{{if .Repository.IsTimetrackerEnabled $.Context}}
|
2024-04-25 13:24:26 +02:00
|
|
|
{{template "repo/issue/view_content/sidebar/timetracking" .}}
|
2023-05-29 12:44:03 +02:00
|
|
|
{{end}}
|
|
|
|
|
2023-06-29 14:24:22 +02:00
|
|
|
<div class="divider"></div>
|
2024-04-25 13:34:48 +02:00
|
|
|
{{template "repo/issue/view_content/sidebar/due_deadline" .}}
|
2023-05-29 12:44:03 +02:00
|
|
|
|
|
|
|
{{if .Repository.IsDependenciesEnabled $.Context}}
|
2023-06-29 14:24:22 +02:00
|
|
|
<div class="divider"></div>
|
2023-05-29 12:44:03 +02:00
|
|
|
|
2024-04-25 13:37:43 +02:00
|
|
|
{{template "repo/issue/view_content/sidebar/dependencies" .}}
|
2023-05-29 12:44:03 +02:00
|
|
|
{{end}}
|
|
|
|
|
2023-06-29 14:24:22 +02:00
|
|
|
<div class="divider"></div>
|
2023-05-29 12:44:03 +02:00
|
|
|
<div class="ui equal width compact grid">
|
|
|
|
{{$issueReferenceLink := printf "%s#%d" .Issue.Repo.FullName .Issue.Index}}
|
2024-03-22 20:51:29 +01:00
|
|
|
<div class="row tw-items-center" data-tooltip-content="{{$issueReferenceLink}}">
|
2023-09-25 10:56:50 +02:00
|
|
|
<span class="text column truncate">{{ctx.Locale.Tr "repo.issues.reference_link" $issueReferenceLink}}</span>
|
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 17:42:49 +01:00
|
|
|
<button class="ui two wide button column tw-p-2" data-clipboard-text="{{$issueReferenceLink}}">{{svg "octicon-copy" 14}}</button>
|
2023-05-29 12:44:03 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2021-02-28 15:05:55 +01:00
|
|
|
|
2023-05-29 12:44:03 +02:00
|
|
|
{{if and .IsRepoAdmin (not .Repository.IsArchived)}}
|
2023-06-29 14:24:22 +02:00
|
|
|
<div class="divider"></div>
|
2022-05-05 20:58:37 +02:00
|
|
|
|
2023-05-29 12:44:03 +02:00
|
|
|
{{if or .PinEnabled .Issue.IsPinned}}
|
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 17:42:49 +01:00
|
|
|
<form class="tw-mt-1 form-fetch-action single-button-form" method="post" {{if $.NewPinAllowed}}action="{{.Issue.Link}}/pin"{{else}}data-tooltip-content="{{ctx.Locale.Tr "repo.issues.max_pinned"}}"{{end}}>
|
2023-05-29 12:44:03 +02:00
|
|
|
{{$.CsrfTokenHtml}}
|
2023-06-14 18:40:15 +02:00
|
|
|
<button class="fluid ui button {{if not $.NewPinAllowed}}disabled{{end}}">
|
2023-05-29 12:44:03 +02:00
|
|
|
{{if not .Issue.IsPinned}}
|
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 17:42:49 +01:00
|
|
|
{{svg "octicon-pin" 16 "tw-mr-2"}}
|
2023-09-25 10:56:50 +02:00
|
|
|
{{ctx.Locale.Tr "pin"}}
|
2023-05-29 12:44:03 +02:00
|
|
|
{{else}}
|
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 17:42:49 +01:00
|
|
|
{{svg "octicon-pin-slash" 16 "tw-mr-2"}}
|
2023-09-25 10:56:50 +02:00
|
|
|
{{ctx.Locale.Tr "unpin"}}
|
2023-05-29 12:44:03 +02:00
|
|
|
{{end}}
|
|
|
|
</button>
|
|
|
|
</form>
|
|
|
|
{{end}}
|
2023-05-25 15:17:19 +02:00
|
|
|
|
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 17:42:49 +01:00
|
|
|
<button class="tw-mt-1 fluid ui show-modal button {{if .Issue.IsLocked}} negative {{end}}" data-modal="#lock">
|
2023-05-29 12:44:03 +02:00
|
|
|
{{if .Issue.IsLocked}}
|
|
|
|
{{svg "octicon-key"}}
|
2023-09-25 10:56:50 +02:00
|
|
|
{{ctx.Locale.Tr "repo.issues.unlock"}}
|
2023-05-29 12:44:03 +02:00
|
|
|
{{else}}
|
|
|
|
{{svg "octicon-lock"}}
|
2023-09-25 10:56:50 +02:00
|
|
|
{{ctx.Locale.Tr "repo.issues.lock"}}
|
2023-05-25 15:17:19 +02:00
|
|
|
{{end}}
|
2023-05-29 12:44:03 +02:00
|
|
|
</button>
|
|
|
|
<div class="ui tiny modal" id="lock">
|
|
|
|
<div class="header">
|
2023-05-25 15:17:19 +02:00
|
|
|
{{if .Issue.IsLocked}}
|
2023-09-25 10:56:50 +02:00
|
|
|
{{ctx.Locale.Tr "repo.issues.unlock.title"}}
|
2023-05-25 15:17:19 +02:00
|
|
|
{{else}}
|
2023-09-25 10:56:50 +02:00
|
|
|
{{ctx.Locale.Tr "repo.issues.lock.title"}}
|
2023-05-25 15:17:19 +02:00
|
|
|
{{end}}
|
2023-05-29 12:44:03 +02:00
|
|
|
</div>
|
|
|
|
<div class="content">
|
|
|
|
<div class="ui warning message">
|
2022-08-31 17:58:54 +02:00
|
|
|
{{if .Issue.IsLocked}}
|
2023-09-25 10:56:50 +02:00
|
|
|
{{ctx.Locale.Tr "repo.issues.unlock.notice_1"}}<br>
|
|
|
|
{{ctx.Locale.Tr "repo.issues.unlock.notice_2"}}<br>
|
2021-02-28 15:05:55 +01:00
|
|
|
{{else}}
|
2023-09-25 10:56:50 +02:00
|
|
|
{{ctx.Locale.Tr "repo.issues.lock.notice_1"}}<br>
|
|
|
|
{{ctx.Locale.Tr "repo.issues.lock.notice_2"}}<br>
|
|
|
|
{{ctx.Locale.Tr "repo.issues.lock.notice_3"}}<br>
|
2021-02-28 15:05:55 +01:00
|
|
|
{{end}}
|
2019-02-18 21:55:04 +01:00
|
|
|
</div>
|
|
|
|
|
2023-06-29 06:16:04 +02:00
|
|
|
<form class="ui form form-fetch-action" action="{{.Issue.Link}}{{if .Issue.IsLocked}}/unlock{{else}}/lock{{end}}"
|
2023-05-29 12:44:03 +02:00
|
|
|
method="post">
|
|
|
|
{{.CsrfTokenHtml}}
|
2019-02-18 21:55:04 +01:00
|
|
|
|
2023-05-29 12:44:03 +02:00
|
|
|
{{if not .Issue.IsLocked}}
|
|
|
|
<div class="field">
|
2023-09-25 10:56:50 +02:00
|
|
|
<strong> {{ctx.Locale.Tr "repo.issues.lock.reason"}} </strong>
|
2023-05-29 12:44:03 +02:00
|
|
|
</div>
|
2019-02-18 21:55:04 +01:00
|
|
|
|
2023-05-29 12:44:03 +02:00
|
|
|
<div class="field">
|
2023-08-26 04:44:00 +02:00
|
|
|
<div class="ui fluid dropdown selection">
|
2019-02-18 21:55:04 +01:00
|
|
|
|
2023-05-29 12:44:03 +02:00
|
|
|
<select name="reason">
|
|
|
|
<option value=""> </option>
|
|
|
|
{{range .LockReasons}}
|
|
|
|
<option value="{{.}}">{{.}}</option>
|
|
|
|
{{end}}
|
|
|
|
</select>
|
|
|
|
{{svg "octicon-triangle-down" 14 "dropdown icon"}}
|
2019-02-18 21:55:04 +01:00
|
|
|
|
2023-05-29 12:44:03 +02:00
|
|
|
<div class="default text"> </div>
|
2019-02-18 21:55:04 +01:00
|
|
|
|
2023-05-29 12:44:03 +02:00
|
|
|
<div class="menu">
|
|
|
|
{{range .LockReasons}}
|
|
|
|
<div class="item" data-value="{{.}}">{{.}}</div>
|
|
|
|
{{end}}
|
2021-02-28 15:05:55 +01:00
|
|
|
</div>
|
2019-02-18 21:55:04 +01:00
|
|
|
</div>
|
2021-03-21 19:58:28 +01:00
|
|
|
</div>
|
2023-05-29 12:44:03 +02:00
|
|
|
{{end}}
|
|
|
|
|
|
|
|
<div class="text right actions">
|
2023-09-25 10:56:50 +02:00
|
|
|
<button class="ui cancel button">{{ctx.Locale.Tr "settings.cancel"}}</button>
|
2023-05-29 12:44:03 +02:00
|
|
|
<button class="ui red button">
|
|
|
|
{{if .Issue.IsLocked}}
|
2023-09-25 10:56:50 +02:00
|
|
|
{{ctx.Locale.Tr "repo.issues.unlock_confirm"}}
|
2023-05-29 12:44:03 +02:00
|
|
|
{{else}}
|
2023-09-25 10:56:50 +02:00
|
|
|
{{ctx.Locale.Tr "repo.issues.lock_confirm"}}
|
2023-05-29 12:44:03 +02:00
|
|
|
{{end}}
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</form>
|
2018-07-17 23:23:58 +02:00
|
|
|
</div>
|
2023-05-29 12:44:03 +02:00
|
|
|
</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 17:42:49 +01:00
|
|
|
<button class="tw-mt-1 fluid ui show-modal button" data-modal="#sidebar-delete-issue">
|
2023-05-29 12:44:03 +02:00
|
|
|
{{svg "octicon-trash"}}
|
2023-09-25 10:56:50 +02:00
|
|
|
{{ctx.Locale.Tr "repo.issues.delete"}}
|
2023-05-29 12:44:03 +02:00
|
|
|
</button>
|
2023-09-11 19:06:05 +02:00
|
|
|
<div class="ui g-modal-confirm modal" id="sidebar-delete-issue">
|
2023-05-29 12:44:03 +02:00
|
|
|
<div class="header">
|
|
|
|
{{if .Issue.IsPull}}
|
2023-09-25 10:56:50 +02:00
|
|
|
{{ctx.Locale.Tr "repo.pulls.delete.title"}}
|
2023-05-29 12:44:03 +02:00
|
|
|
{{else}}
|
2023-09-25 10:56:50 +02:00
|
|
|
{{ctx.Locale.Tr "repo.issues.delete.title"}}
|
2023-05-29 12:44:03 +02:00
|
|
|
{{end}}
|
|
|
|
</div>
|
|
|
|
<div class="content">
|
|
|
|
<p>
|
2022-06-19 12:05:15 +02:00
|
|
|
{{if .Issue.IsPull}}
|
2023-09-25 10:56:50 +02:00
|
|
|
{{ctx.Locale.Tr "repo.pulls.delete.text"}}
|
2022-06-19 12:05:15 +02:00
|
|
|
{{else}}
|
2023-09-25 10:56:50 +02:00
|
|
|
{{ctx.Locale.Tr "repo.issues.delete.text"}}
|
2022-06-19 12:05:15 +02:00
|
|
|
{{end}}
|
2023-05-29 12:44:03 +02:00
|
|
|
</p>
|
2022-03-09 01:38:11 +01:00
|
|
|
</div>
|
2023-05-29 12:44:03 +02:00
|
|
|
<form action="{{.Issue.Link}}/delete" method="post">
|
|
|
|
{{.CsrfTokenHtml}}
|
|
|
|
{{template "base/modal_actions_confirm" .}}
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
{{end}}
|
2022-04-28 17:45:33 +02:00
|
|
|
|
2023-05-29 12:44:03 +02:00
|
|
|
{{if and .Issue.IsPull .IsIssuePoster (not .Issue.IsClosed) .Issue.PullRequest.HeadRepo}}
|
|
|
|
{{if and (not (eq .Issue.PullRequest.HeadRepo.FullName .Issue.PullRequest.BaseRepo.FullName)) .CanWriteToHeadRepo}}
|
2023-06-29 14:24:22 +02:00
|
|
|
<div class="divider"></div>
|
2023-05-29 12:44:03 +02:00
|
|
|
<div class="inline field">
|
2024-03-31 18:06:06 +02:00
|
|
|
<div class="ui checkbox loading-icon-2px" id="allow-edits-from-maintainers"
|
2023-05-29 12:44:03 +02:00
|
|
|
data-url="{{.Issue.Link}}"
|
2023-09-25 10:56:50 +02:00
|
|
|
data-tooltip-content="{{ctx.Locale.Tr "repo.pulls.allow_edits_from_maintainers_desc"}}"
|
|
|
|
data-prompt-error="{{ctx.Locale.Tr "repo.pulls.allow_edits_from_maintainers_err"}}"
|
2023-05-29 12:44:03 +02:00
|
|
|
>
|
2023-09-25 10:56:50 +02:00
|
|
|
<label><strong>{{ctx.Locale.Tr "repo.pulls.allow_edits_from_maintainers"}}</strong></label>
|
2023-05-29 12:44:03 +02:00
|
|
|
<input type="checkbox" {{if .Issue.PullRequest.AllowMaintainerEdit}}checked{{end}}>
|
2022-04-28 17:45:33 +02:00
|
|
|
</div>
|
2023-05-29 12:44:03 +02:00
|
|
|
</div>
|
2022-04-28 17:45:33 +02:00
|
|
|
{{end}}
|
2023-05-29 12:44:03 +02:00
|
|
|
{{end}}
|
2021-02-28 15:05:55 +01:00
|
|
|
</div>
|