From adb17067dcde74d3b527f897e9c1b1181cd44287 Mon Sep 17 00:00:00 2001 From: Dan Allen Date: Tue, 29 Oct 2019 01:11:06 -0600 Subject: [PATCH] don't use fileUri for edit link if CI env var is set --- src/partials/toolbar.hbs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/partials/toolbar.hbs b/src/partials/toolbar.hbs index a285681..f487144 100644 --- a/src/partials/toolbar.hbs +++ b/src/partials/toolbar.hbs @@ -5,7 +5,9 @@ {{/if}} {{> breadcrumbs}} {{> page-versions}} - {{#if (or page.fileUri (and page.editUrl (not page.origin.private)))}} -
Edit this Page
+ {{#if (and page.fileUri (not env.CI))}} +
Edit this Page
+ {{else if (and page.editUrl (not page.origin.private))}} +
Edit this Page
{{/if}} -- 2.11.0