projects
/
working
/
eg-antora.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
690cf85
)
don't use fileUri for edit link if CI env var is set
author
Dan Allen
<dan@opendevise.com>
Tue, 29 Oct 2019 07:11:06 +0000
(
01:11
-0600)
committer
Dan Allen
<dan@opendevise.com>
Tue, 29 Oct 2019 07:11:06 +0000
(
01:11
-0600)
src/partials/toolbar.hbs
patch
|
blob
|
history
diff --git
a/src/partials/toolbar.hbs
b/src/partials/toolbar.hbs
index
a285681
..
f487144
100644
(file)
--- 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)))}}
- <div class="edit-this-page"><a href="{{or page.fileUri page.editUrl}}">Edit this Page</a></div>
+ {{#if (and page.fileUri (not env.CI))}}
+ <div class="edit-this-page"><a href="{{page.fileUri}}">Edit this Page</a></div>
+ {{else if (and page.editUrl (not page.origin.private))}}
+ <div class="edit-this-page"><a href="{{page.editUrl}}">Edit this Page</a></div>
{{/if}}
</div>