From b3f808859eb871e5ea5f258f89c60ae5ffc4331b Mon Sep 17 00:00:00 2001
From: n <67550725+n194@users.noreply.github.com>
Date: Wed, 18 Aug 2021 19:14:43 +0900
Subject: [PATCH 1/2] Add edit button to wiki sidebar and footer
---
templates/repo/wiki/view.tmpl | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/templates/repo/wiki/view.tmpl b/templates/repo/wiki/view.tmpl
index fbb97db4ad329..f0c744fb80177 100644
--- a/templates/repo/wiki/view.tmpl
+++ b/templates/repo/wiki/view.tmpl
@@ -67,6 +67,9 @@
{{if .sidebarPresent}}
+ {{if and .CanWriteWiki (not .Repository.IsMirror)}}
+
{{svg "octicon-pencil"}}
+ {{end}}
{{.sidebarContent | Str2html}}
@@ -74,6 +77,9 @@
{{if .footerPresent}}
+ {{if and .CanWriteWiki (not .Repository.IsMirror)}}
+
{{svg "octicon-pencil"}}
+ {{end}}
{{.footerContent | Str2html}}
{{end}}
From edc8ab84735d65fee161262cfe0f1e5fa027b9ec Mon Sep 17 00:00:00 2001
From: n <67550725+n194@users.noreply.github.com>
Date: Wed, 18 Aug 2021 23:42:20 +0900
Subject: [PATCH 2/2] Make edit button transparent
---
templates/repo/wiki/view.tmpl | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/templates/repo/wiki/view.tmpl b/templates/repo/wiki/view.tmpl
index f0c744fb80177..a393fb20a18f0 100644
--- a/templates/repo/wiki/view.tmpl
+++ b/templates/repo/wiki/view.tmpl
@@ -68,7 +68,7 @@
@@ -78,7 +78,7 @@
{{if .footerPresent}}