summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
author0ko <0ko@noreply.codeberg.org>2024-03-14 16:59:57 +0100
committer0ko <0ko@noreply.codeberg.org>2024-03-14 16:59:57 +0100
commit008706a438f8aff064c14fce35b3c12524799b07 (patch)
tree4324b5e17a5e76808623449dc5764fce802b3fc2 /templates
parentMerge pull request '[PORT] Test /user/settings/security auth sources' (#2641)... (diff)
downloadforgejo-008706a438f8aff064c14fce35b3c12524799b07.tar.xz
forgejo-008706a438f8aff064c14fce35b3c12524799b07.zip
Offer to remove WIP: prefix in sidebar
Fixes https://codeberg.org/forgejo/forgejo/issues/2654
Diffstat (limited to 'templates')
-rw-r--r--templates/repo/issue/view_content/sidebar.tmpl8
1 files changed, 6 insertions, 2 deletions
diff --git a/templates/repo/issue/view_content/sidebar.tmpl b/templates/repo/issue/view_content/sidebar.tmpl
index 329a39dd69..75f71c2beb 100644
--- a/templates/repo/issue/view_content/sidebar.tmpl
+++ b/templates/repo/issue/view_content/sidebar.tmpl
@@ -113,10 +113,14 @@
{{end}}
</div>
</div>
- {{if and (or .HasIssuesOrPullsWritePermission .IsIssuePoster) (not .HasMerged) (not .Issue.IsClosed) (not .IsPullWorkInProgress)}}
+ {{if and (or .HasIssuesOrPullsWritePermission .IsIssuePoster) (not .HasMerged) (not .Issue.IsClosed)}}
<div class="toggle-wip" data-title="{{.Issue.Title}}" data-wip-prefix="{{index .PullRequestWorkInProgressPrefixes 0}}" data-update-url="{{.Issue.Link}}/title">
<a class="muted">
- {{ctx.Locale.Tr "repo.pulls.still_in_progress"}} {{ctx.Locale.Tr "repo.pulls.add_prefix" (index .PullRequestWorkInProgressPrefixes 0)}}
+ {{if .IsPullWorkInProgress}}
+ {{ctx.Locale.Tr "repo.pulls.ready_for_review"}} {{ctx.Locale.Tr "repo.pulls.remove_prefix" (index .PullRequestWorkInProgressPrefixes 0)}}
+ {{else}}
+ {{ctx.Locale.Tr "repo.pulls.still_in_progress"}} {{ctx.Locale.Tr "repo.pulls.add_prefix" (index .PullRequestWorkInProgressPrefixes 0)}}
+ {{end}}
</a>
</div>
{{end}}