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:
commit
bb07f30b4f
3 changed files with 62 additions and 0 deletions
|
@ -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">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue