Skip to content

Commit

Permalink
Update edit-this-page.hbs
Browse files Browse the repository at this point in the history
should only ever render the edit page to the github url
  • Loading branch information
jmcc0nn3ll authored May 31, 2024
1 parent 032faa8 commit 1040219
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ui/src/partials/edit-this-page.hbs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{#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 (or env.FORCE_SHOW_EDIT_PAGE_LINK (not page.origin.private)))}}
{{!#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 (or env.FORCE_SHOW_EDIT_PAGE_LINK (not page.origin.private)))}}
<div class="edit-this-page"><a href="{{page.editUrl}}">Edit this Page</a></div>
{{/if}}
{{!/if}}

0 comments on commit 1040219

Please sign in to comment.