summaryrefslogtreecommitdiffstats
path: root/templates/repo/issue/view_content/context_menu.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'templates/repo/issue/view_content/context_menu.tmpl')
-rw-r--r--templates/repo/issue/view_content/context_menu.tmpl12
1 files changed, 6 insertions, 6 deletions
diff --git a/templates/repo/issue/view_content/context_menu.tmpl b/templates/repo/issue/view_content/context_menu.tmpl
index d3907eee99..45dd08bf61 100644
--- a/templates/repo/issue/view_content/context_menu.tmpl
+++ b/templates/repo/issue/view_content/context_menu.tmpl
@@ -4,12 +4,12 @@
{{svg "octicon-kebab-horizontal"}}
</a>
<div class="menu">
- {{ $referenceUrl := "" }}
- {{ if .issue }}
- {{ $referenceUrl = Printf "%s#%s" .ctx.Issue.HTMLURL .item.HashTag }}
- {{ else }}
- {{ $referenceUrl = Printf "%s/files#%s" .ctx.Issue.HTMLURL .item.HashTag }}
- {{ end }}
+ {{$referenceUrl := ""}}
+ {{if .issue}}
+ {{$referenceUrl = Printf "%s#%s" .ctx.Issue.HTMLURL .item.HashTag}}
+ {{else}}
+ {{$referenceUrl = Printf "%s/files#%s" .ctx.Issue.HTMLURL .item.HashTag}}
+ {{end}}
<div class="item context" data-clipboard-text="{{$referenceUrl}}">{{.ctx.locale.Tr "repo.issues.context.copy_link"}}</div>
<div class="item context quote-reply {{if .diff}}quote-reply-diff{{end}}" data-target="{{.item.ID}}">{{.ctx.locale.Tr "repo.issues.context.quote_reply"}}</div>
{{if not .ctx.UnitIssuesGlobalDisabled}}