1
Fork 0

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

This commit is contained in:
Beowulf 2025-02-09 00:35:14 +01:00
parent 93f84db542
commit c6ab10c1ba
No known key found for this signature in database
GPG key ID: 44225F5F2792841D
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">