Co-Authored-By: edef <edef@edef.eu> Co-Authored-by: Ryan Lahfa <raito@lix.systems> Change-Id: Ica1cda177a236814de900f50a8a61d288f58f519
14 lines
974 B
Diff
14 lines
974 B
Diff
diff --git a/templates/repo/issue/view_title.tmpl b/templates/repo/issue/view_title.tmpl
|
|
index c1dd265..9a573ce 100644
|
|
--- a/templates/repo/issue/view_title.tmpl
|
|
+++ b/templates/repo/issue/view_title.tmpl
|
|
@@ -16,6 +16,9 @@
|
|
{{if and (or .HasIssuesOrPullsWritePermission .IsIssuePoster) (not .Repository.IsArchived)}}
|
|
<button id="edit-title" class="ui small basic button edit-button not-in-edit{{if .Issue.IsPull}} gt-mr-0{{end}}">{{.locale.Tr "repo.issues.edit"}}</button>
|
|
{{end}}
|
|
+ {{if and (eq .Repository.Name "nix") (eq .Repository.OwnerName "NixOS")}}
|
|
+ <a role="button" class="ui small basic button" href="https://github.com/NixOS/nix/issues/{{.Issue.Index}}">{{svg "octicon-mark-github"}} Open upstream</a>
|
|
+ {{end}}
|
|
{{if not .Issue.IsPull}}
|
|
<a role="button" class="ui small green button new-issue-button gt-mr-0" href="{{.RepoLink}}/issues/new{{if .NewIssueChooseTemplate}}/choose{{end}}">{{.locale.Tr "repo.issues.new"}}</a>
|
|
{{end}}
|