<div class="ui reference">
	{{$issueReferenceLink := ""}}
	{{if .Issue.IsPull}}
		{{$issueReferenceLink = printf "%s!%d" .Issue.Repo.FullName .Issue.Index}}
	{{else}}
		{{$issueReferenceLink = printf "%s#%d" .Issue.Repo.FullName .Issue.Index}}
	{{end}}
	<span class="text">
		<strong>
			{{ctx.Locale.Tr "discussion.sidebar.reference"}}
		</strong>
	</span>
	<div class="ui equal width compact grid">
		<div class="row tw-items-center" data-tooltip-content="{{$issueReferenceLink}}">
			<span class="text column truncate">{{$issueReferenceLink}}</span>
			<button class="ui two wide button column tw-p-2" data-clipboard-text="{{$issueReferenceLink}}">{{svg "octicon-copy" 14}}</button>
		</div>
	</div>
</div>
