From 584cf29911802900cd9d6f598d43c47e6ed5c173 Mon Sep 17 00:00:00 2001 From: JakobDev Date: Mon, 24 Apr 2023 11:52:41 +0200 Subject: [PATCH 1/2] Improve External Wiki in Repo Header --- templates/repo/header.tmpl | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/templates/repo/header.tmpl b/templates/repo/header.tmpl index 5f2e135b98699..78cac49e476ad 100644 --- a/templates/repo/header.tmpl +++ b/templates/repo/header.tmpl @@ -215,12 +215,18 @@ {{end}} - {{if or (.Permission.CanRead $.UnitTypeWiki) (.Permission.CanRead $.UnitTypeExternalWiki)}} - + {{if .Permission.CanRead $.UnitTypeWiki}} + {{svg "octicon-book"}} {{.locale.Tr "repo.wiki"}} {{end}} + {{if .Permission.CanRead $.UnitTypeExternalWiki}} + + {{svg "octicon-link-external"}} {{.locale.Tr "repo.wiki"}} + + {{end}} + {{if and (.Permission.CanReadAny $.UnitTypePullRequests $.UnitTypeIssues $.UnitTypeReleases) (not .IsEmptyRepo)}} {{svg "octicon-pulse"}} {{.locale.Tr "repo.activity"}} From 0d3daad63b079aed2c99be7e330a5dfe6fefd984 Mon Sep 17 00:00:00 2001 From: JakobDev Date: Mon, 24 Apr 2023 12:58:03 +0200 Subject: [PATCH 2/2] External Wiki is never active --- templates/repo/header.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/repo/header.tmpl b/templates/repo/header.tmpl index 78cac49e476ad..8a6833f499316 100644 --- a/templates/repo/header.tmpl +++ b/templates/repo/header.tmpl @@ -222,7 +222,7 @@ {{end}} {{if .Permission.CanRead $.UnitTypeExternalWiki}} - + {{svg "octicon-link-external"}} {{.locale.Tr "repo.wiki"}} {{end}}