mirror of
https://github.com/documize/community.git
synced 2025-07-24 07:39:43 +02:00
1. Sidebar contains ToC & attachments. 2. Document meta moved up before content (to frame context). 3. Per section toolbar re-designed. Co-Authored-By: Harvey Kandola <harvey@documize.com>
40 lines
1.5 KiB
Handlebars
40 lines
1.5 KiB
Handlebars
<div class="document-meta">
|
|
{{#link-to 'folder.index' space.id space.slug class="no-print"}}
|
|
{{ui/ui-button light=true color=constants.Color.Yellow uppercase=false
|
|
icon=constants.Icon.ArrowLeft label=space.name}}
|
|
{{/link-to}}
|
|
|
|
{{ui/ui-spacer size=300}}
|
|
|
|
<div class="title">CATEGORY / TAG</div>
|
|
{{#each selectedCategories as |cat|}}
|
|
<div class="meta-label">
|
|
<i class="dicon {{constants.Icon.Category}}"/>
|
|
{{cat.category}}
|
|
{{#attach-tooltip showDelay=1000}}Category{{/attach-tooltip}}
|
|
</div>
|
|
{{/each}}
|
|
{{#each tagz as |t|}}
|
|
<div class="meta-label">
|
|
<i class="dicon {{constants.Icon.Tag}}"/>
|
|
{{t}}
|
|
{{#attach-tooltip showDelay=1000}}Tag{{/attach-tooltip}}
|
|
</div>
|
|
{{/each}}
|
|
|
|
{{ui/ui-spacer size=200}}
|
|
|
|
<div class="title">STATUS</div>
|
|
<div class="{{if (eq document.lifecycle constants.Lifecycle.Draft) "label-draft"}}
|
|
{{if (eq document.lifecycle constants.Lifecycle.Live) "label-live"}}
|
|
{{if (eq document.lifecycle constants.Lifecycle.Archived) "label-archived"}}">
|
|
{{document.lifecycleLabel}}
|
|
{{#attach-tooltip showDelay=1000}}Lifecycle: Draft · Live · Archived{{/attach-tooltip}}
|
|
</div>
|
|
<div class="label-approval">
|
|
{{#if (eq document.protection constants.ProtectionType.None)}}OPEN{{/if}}
|
|
{{#if (eq document.protection constants.ProtectionType.Review)}}PROTECTED{{/if}}
|
|
{{#if (eq document.protection constants.ProtectionType.Lock)}}LOCKED{{/if}}
|
|
{{#attach-tooltip showDelay=1000}}Change Control: Open · Protected · Locked{{/attach-tooltip}}
|
|
</div>
|
|
</div>
|