From 4aa3cacc4f5a8041d6a1857293f54cc68f550845 Mon Sep 17 00:00:00 2001 From: n <67550725+n194@users.noreply.github.com> Date: Thu, 19 Aug 2021 03:14:08 +0900 Subject: [PATCH] Add edit button to wiki sidebar and footer (#16719) * Add edit button to wiki sidebar and footer * Make edit button transparent Co-authored-by: Lunny Xiao Co-authored-by: Lauris BH --- 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 fbb97db4ad..a393fb20a1 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}}