From 4011e79a06cb4949f781104feb4c6329752d433c Mon Sep 17 00:00:00 2001 From: Dan Allen Date: Wed, 18 Mar 2020 15:59:43 -0600 Subject: [PATCH] honor environment variable (FORCE_SHOW_EDIT_PAGE_LINK) to force edit page link to be shown --- src/partials/toolbar.hbs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/partials/toolbar.hbs b/src/partials/toolbar.hbs index f487144..4e6f59b 100644 --- a/src/partials/toolbar.hbs +++ b/src/partials/toolbar.hbs @@ -7,7 +7,7 @@ {{> page-versions}} {{#if (and page.fileUri (not env.CI))}}
Edit this Page
- {{else if (and page.editUrl (not page.origin.private))}} + {{else if (and page.editUrl (or env.FORCE_SHOW_EDIT_PAGE_LINK (not page.origin.private)))}}
Edit this Page
{{/if}} -- 2.11.0