mirror of https://github.com/go-gitea/gitea.git
fix: issue tracker link redirection (#13504)
kudos to @zeripath * in case there is a remote issue tracker configured, the git graph view PR and issue links now correctly point to the issue tracker location, whereas if literally pointing at 'pulls', you could have ended up back at the local instance after clicking the link (which, obviously haven't had the pull/issue) Signed-off-by: wULLSnpAXbWZGYDYyhWTKKspEQoaYxXyhoisqHf <a_mirre@utb.cz>pull/13521/head
parent
da4f2c5979
commit
3400928f7a
|
@ -35,12 +35,12 @@
|
||||||
{{if eq $refGroup "pull"}}
|
{{if eq $refGroup "pull"}}
|
||||||
{{if $.HidePRRefs}}
|
{{if $.HidePRRefs}}
|
||||||
{{if (containGeneric $.SelectedBranches .Name) }}
|
{{if (containGeneric $.SelectedBranches .Name) }}
|
||||||
<a class="ui labelled icon button basic tiny" href="{{$.RepoLink}}/pulls/{{.ShortName|PathEscape}}">
|
<a class="ui labelled icon button basic tiny" href="{{$.RepoLink}}/issues/{{.ShortName|PathEscape}}">
|
||||||
{{svg "octicon-git-pull-request" 16 "mr-2"}}#{{.ShortName}}
|
{{svg "octicon-git-pull-request" 16 "mr-2"}}#{{.ShortName}}
|
||||||
</a>
|
</a>
|
||||||
{{end}}
|
{{end}}
|
||||||
{{else}}
|
{{else}}
|
||||||
<a class="ui labelled icon button basic tiny" href="{{$.RepoLink}}/pulls/{{.ShortName|PathEscape}}">
|
<a class="ui labelled icon button basic tiny" href="{{$.RepoLink}}/issues/{{.ShortName|PathEscape}}">
|
||||||
{{svg "octicon-git-pull-request" 16 "mr-2"}}#{{.ShortName}}
|
{{svg "octicon-git-pull-request" 16 "mr-2"}}#{{.ShortName}}
|
||||||
</a>
|
</a>
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
Loading…
Reference in New Issue