From 72bf6ad621d092511c1f5f7e235135bff974738b Mon Sep 17 00:00:00 2001 From: Noah Petherbridge Date: Sat, 23 Dec 2017 15:37:39 -0800 Subject: [PATCH] Fix edit link for Wiki pages --- www/.layout.gohtml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/www/.layout.gohtml b/www/.layout.gohtml index 949c806..2cc55bf 100644 --- a/www/.layout.gohtml +++ b/www/.layout.gohtml @@ -62,6 +62,12 @@ {{ template "content" . }} + {{ if and .CurrentUser.Admin .Editable }} +

+ Admin: [edit this page] +

+ {{ end }} +