From: Dan Allen Date: Tue, 29 Oct 2019 07:11:06 +0000 (-0600) Subject: don't use fileUri for edit link if CI env var is set X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=adb17067dcde74d3b527f897e9c1b1181cd44287;p=eg-antora.git don't use fileUri for edit link if CI env var is set --- 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}}