Add button for opening public docs in a new tab

This commit is contained in:
2018-01-25 16:52:56 +00:00
parent ade473d585
commit 8db259d147
9 changed files with 53 additions and 15 deletions

View File

@@ -1,20 +1,28 @@
<header>
{{breadcrumb-nav currentDirPath=currentDirPath}}
<nav class="actions">
{{#if documentIsJSON}}
<div class="button-group json-view">
{{#if metadataHidden}}
<button {{action "toggleMetadata"}}
title="Show metadata">
{{partial "icons/arrow-from-right"}}
</button>
{{else}}
<button {{action "toggleMetadata"}}
title="Hide metadata">
{{partial "icons/arrow-to-right"}}
</button>
{{/if}}
<div class="button-group">
{{#if metadataHidden}}
<button {{action "toggleMetadata"}}
title="Show metadata">
{{partial "icons/arrow-from-right"}}
</button>
{{else}}
<button {{action "toggleMetadata"}}
title="Hide metadata">
{{partial "icons/arrow-to-right"}}
</button>
{{/if}}
</div>
{{#if publicItemURL}}
<div class="button-group">
<a class="button" href={{publicItemURL}} target="_blank"
title="Open document in new tab">
{{partial "icons/share"}}
</a>
</div>
{{/if}}
{{#if documentIsJSON}}
<div class="button-group json-view">
<button disabled={{jsonShowTree}}
class="{{if jsonShowTree "active"}}"