|
1 |
| -{{if .ctxData.IsSigned}} |
2 | 1 | <div class="item action ui dropdown jump pointing top right context-dropdown">
|
3 | 2 | <a class="context-menu muted">
|
4 | 3 | {{svg "octicon-kebab-horizontal"}}
|
|
11 | 10 | {{$referenceUrl = printf "%s/files#%s" .ctxData.Issue.Link .item.HashTag}}
|
12 | 11 | {{end}}
|
13 | 12 | <div class="item context js-aria-clickable" data-clipboard-text-type="url" data-clipboard-text="{{$referenceUrl}}">{{.ctxData.locale.Tr "repo.issues.context.copy_link"}}</div>
|
14 |
| - <div class="item context js-aria-clickable quote-reply {{if .diff}}quote-reply-diff{{end}}" data-target="{{.item.HashTag}}-raw">{{.ctxData.locale.Tr "repo.issues.context.quote_reply"}}</div> |
15 |
| - {{if not .ctxData.UnitIssuesGlobalDisabled}} |
16 |
| - <div class="item context js-aria-clickable reference-issue" data-target="{{.item.HashTag}}-raw" data-modal="#reference-issue-modal" data-poster="{{.item.Poster.GetDisplayName}}" data-poster-username="{{.item.Poster.Name}}" data-reference="{{$referenceUrl}}">{{.ctxData.locale.Tr "repo.issues.context.reference_issue"}}</div> |
17 |
| - {{end}} |
18 |
| - {{if or .ctxData.Permission.IsAdmin .IsCommentPoster .ctxData.HasIssuesOrPullsWritePermission}} |
19 |
| - <div class="divider"></div> |
20 |
| - <div class="item context js-aria-clickable edit-content">{{.ctxData.locale.Tr "repo.issues.context.edit"}}</div> |
21 |
| - {{if .delete}} |
22 |
| - <div class="item context js-aria-clickable delete-comment" data-comment-id={{.item.HashTag}} data-url="{{.ctxData.RepoLink}}/comments/{{.item.ID}}/delete" data-locale="{{.ctxData.locale.Tr "repo.issues.delete_comment_confirm"}}">{{.ctxData.locale.Tr "repo.issues.context.delete"}}</div> |
| 13 | + {{if and .ctxData.IsSigned (not .ctxData.Repository.IsArchived)}} |
| 14 | + <div class="item context js-aria-clickable quote-reply {{if .diff}}quote-reply-diff{{end}}" data-target="{{.item.HashTag}}-raw">{{.ctxData.locale.Tr "repo.issues.context.quote_reply"}}</div> |
| 15 | + {{if not .ctxData.UnitIssuesGlobalDisabled}} |
| 16 | + <div class="item context js-aria-clickable reference-issue" data-target="{{.item.HashTag}}-raw" data-modal="#reference-issue-modal" data-poster="{{.item.Poster.GetDisplayName}}" data-poster-username="{{.item.Poster.Name}}" data-reference="{{$referenceUrl}}">{{.ctxData.locale.Tr "repo.issues.context.reference_issue"}}</div> |
| 17 | + {{end}} |
| 18 | + {{if or .ctxData.Permission.IsAdmin .IsCommentPoster .ctxData.HasIssuesOrPullsWritePermission}} |
| 19 | + <div class="divider"></div> |
| 20 | + <div class="item context js-aria-clickable edit-content">{{.ctxData.locale.Tr "repo.issues.context.edit"}}</div> |
| 21 | + {{if .delete}} |
| 22 | + <div class="item context js-aria-clickable delete-comment" data-comment-id={{.item.HashTag}} data-url="{{.ctxData.RepoLink}}/comments/{{.item.ID}}/delete" data-locale="{{.ctxData.locale.Tr "repo.issues.delete_comment_confirm"}}">{{.ctxData.locale.Tr "repo.issues.context.delete"}}</div> |
| 23 | + {{end}} |
23 | 24 | {{end}}
|
24 | 25 | {{end}}
|
25 | 26 | </div>
|
26 | 27 | </div>
|
27 |
| -{{end}} |
0 commit comments