don't show edit this page if page.editUrl is not set
authorDan Allen <dan@opendevise.com>
Wed, 7 Feb 2018 06:07:07 +0000 (23:07 -0700)
committerSarah White <graphitefriction@gmail.com>
Wed, 7 Feb 2018 17:55:37 +0000 (10:55 -0700)
src/partials/toolbar.hbs

index 601f479..451c38b 100644 (file)
@@ -5,5 +5,7 @@
   {{/if}}
 {{> breadcrumbs}}
 {{> page-versions}}
+  {{#if page.editUrl}}
   <div class="edit-this-page"><a href="{{page.editUrl}}">Edit this Page</a></div>
+  {{/if}}
 </div>