Skip to content

Instantly share code, notes, and snippets.

@lf-
Created May 17, 2024 03:06
Show Gist options
  • Save lf-/f2e31a329c3c48f09198c865e21618e6 to your computer and use it in GitHub Desktop.
Save lf-/f2e31a329c3c48f09198c865e21618e6 to your computer and use it in GitHub Desktop.
From 1acc2fde5ab9bdea666fd1c9d1aba2496d4ce1a8 Mon Sep 17 00:00:00 2001
From: Jade Lovelace <software@lfcode.ca>
Date: Thu, 16 May 2024 18:15:54 -0700
Subject: [PATCH] lix: Make a Code Review (Gerrit) tab
---
templates/repo/header.tmpl | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/templates/repo/header.tmpl b/templates/repo/header.tmpl
index 21017415c1..6f8e9eb341 100644
--- a/templates/repo/header.tmpl
+++ b/templates/repo/header.tmpl
@@ -99,6 +99,12 @@
</a>
{{end}}
+ {{if and (eq .Repository.Name "lix") (eq .Repository.OwnerName "lix-project")}}
+ <a class="item" href="https://gerrit.lix.systems/q/project:lix">
+ {{svg "octicon-code-review"}} Code Review (Gerrit)
+ </a>
+ {{end}}
+
{{if .Permission.CanRead $.UnitTypeExternalTracker}}
<a class="{{if .PageIsIssueList}}active {{end}}item" href="{{.RepoExternalIssuesLink}}" target="_blank" rel="noopener noreferrer">
{{svg "octicon-link-external"}} {{ctx.Locale.Tr "repo.issues"}}
--
2.45.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment