Skip to content

Commit fd7d393

Browse files
authored
Fix unpin hint on the pinned pull requests (#33207)
1 parent 8c6d707 commit fd7d393

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

models/issues/comment.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,8 @@ const (
112112
CommentTypePRScheduledToAutoMerge // 34 pr was scheduled to auto merge when checks succeed
113113
CommentTypePRUnScheduledToAutoMerge // 35 pr was un scheduled to auto merge when checks succeed
114114

115-
CommentTypePin // 36 pin Issue
116-
CommentTypeUnpin // 37 unpin Issue
115+
CommentTypePin // 36 pin Issue/PullRequest
116+
CommentTypeUnpin // 37 unpin Issue/PullRequest
117117

118118
CommentTypeChangeTimeEstimate // 38 Change time estimate
119119
)

options/locale/locale_en-US.ini

+1-1
Original file line numberDiff line numberDiff line change
@@ -1652,7 +1652,7 @@ issues.attachment.open_tab = `Click to see "%s" in a new tab`
16521652
issues.attachment.download = `Click to download "%s"`
16531653
issues.subscribe = Subscribe
16541654
issues.unsubscribe = Unsubscribe
1655-
issues.unpin_issue = Unpin Issue
1655+
issues.unpin = Unpin
16561656
issues.max_pinned = "You can't pin more issues"
16571657
issues.pin_comment = "pinned this %s"
16581658
issues.unpin_comment = "unpinned this %s"

templates/repo/issue/card.tmpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
</div>
1717
<a class="issue-card-title muted issue-title tw-break-anywhere" href="{{.Link}}">{{.Title | ctx.RenderUtils.RenderIssueSimpleTitle}}</a>
1818
{{if and $.isPinnedIssueCard $.Page.IsRepoAdmin}}
19-
<a role="button" class="issue-card-unpin muted tw-flex tw-items-center" data-tooltip-content={{ctx.Locale.Tr "repo.issues.unpin_issue"}} data-issue-id="{{.ID}}" data-unpin-url="{{$.Page.Link}}/unpin/{{.Index}}">
19+
<a role="button" class="issue-card-unpin muted tw-flex tw-items-center" data-tooltip-content={{ctx.Locale.Tr "repo.issues.unpin"}} data-issue-id="{{.ID}}" data-unpin-url="{{$.Page.Link}}/unpin/{{.Index}}">
2020
{{svg "octicon-x" 16}}
2121
</a>
2222
{{end}}

0 commit comments

Comments
 (0)