From 67408f6eadff27241aa1f213b7ae7b5d7553baf2 Mon Sep 17 00:00:00 2001 From: Thierry Carrez Date: Thu, 12 Sep 2019 15:47:39 +0200 Subject: [PATCH] [opendev][gitea] Add a link to open changes Gitea is quickly becoming the public face of Opendev, however it can be difficult for visitors to understand how to propose changes (or access already-proposed changes), and then assume everything on opendev is read-only (which is the exact opposite of what we want to convey). In the spirit of further integrating Opendev tooling, add a link to on every repository to open proposed changes on Gerrit. NB: the link is not I18n-ilized since there is no simple way to add a new string there, and I did not want to use teh "Pull requests" terminology. Change-Id: I851a1e7d25556194947198a8f5534542d167c7f8 --- docker/gitea/custom/templates/repo/header.tmpl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docker/gitea/custom/templates/repo/header.tmpl b/docker/gitea/custom/templates/repo/header.tmpl index fe361b8aa6..0de1055a2e 100644 --- a/docker/gitea/custom/templates/repo/header.tmpl +++ b/docker/gitea/custom/templates/repo/header.tmpl @@ -45,6 +45,10 @@ {{end}} + + Proposed changes + + {{if or (.Permission.CanRead $.UnitTypeWiki) (.Permission.CanRead $.UnitTypeExternalWiki)}} {{.i18n.Tr "repo.wiki"}}