Commit 88ad0bef authored by Dan Allen's avatar Dan Allen

don't show Edit this Page if repository is private

parent 2fc25c6e
Pipeline #48906230 passed with stages
in 3 minutes and 35 seconds
......@@ -60,6 +60,8 @@ page:
module: ROOT
home: false
editUrl: http://example.com/project-xyz/blob/master/index.adoc
origin:
private: false
breadcrumbs:
- content: Quickstart
url: '#'
......
......@@ -5,7 +5,7 @@
{{/if}}
{{> breadcrumbs}}
{{> page-versions}}
{{#if page.editUrl}}
{{#if (and page.editUrl (not page.origin.private))}}
<div class="edit-this-page"><a href="{{page.editUrl}}">Edit this Page</a></div>
{{/if}}
</div>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment