1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2025-09-15 18:56:59 +00:00

feat(ui): Display to maintainers in PR when it is editable (#6863)

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/6863
Reviewed-by: 0ko <0ko@noreply.codeberg.org>
Reviewed-by: Gusted <gusted@noreply.codeberg.org>
This commit is contained in:
0ko 2025-02-10 16:21:39 +00:00
commit bb07f30b4f
3 changed files with 62 additions and 0 deletions

View file

@ -95,6 +95,11 @@
</span>
</a>
{{end}}
{{if and .Issue.PullRequest.AllowMaintainerEdit .CanWriteCode}}
<span id="editable-label" data-tooltip-content="{{ctx.Locale.Tr "repo.pulls.editable_explanation"}}" class="ui small label">
{{ctx.Locale.Tr "repo.pulls.editable"}}
</span>
{{end}}
<span id="pull-desc-editor" class="tw-hidden flex-text-block" data-target-update-url="{{$.RepoLink}}/pull/{{.Issue.Index}}/target_branch">
<div class="ui floating filter dropdown">
<div class="ui basic small button tw-mr-0">