mirror of
https://github.com/documize/community.git
synced 2025-07-24 07:39:43 +02:00
76 lines
2.3 KiB
Handlebars
76 lines
2.3 KiB
Handlebars
<div class="document-meta non-printable">
|
|
<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>
|
|
|
|
{{#if (eq document.protection constants.ProtectionType.None)}}
|
|
<div class="label-open">
|
|
OPEN
|
|
{{#attach-tooltip showDelay=1000}}Change Control: Open · Protected · Locked{{/attach-tooltip}}
|
|
</div>
|
|
{{/if}}
|
|
{{#if (eq document.protection constants.ProtectionType.Review)}}
|
|
<div class="label-protected">
|
|
PROTECTED
|
|
{{#attach-tooltip showDelay=1000}}Change Control: Open · Protected · Locked{{/attach-tooltip}}
|
|
</div>
|
|
{{/if}}
|
|
{{#if (eq document.protection constants.ProtectionType.Lock)}}
|
|
<div class="label-locked">
|
|
LOCKED
|
|
{{#attach-tooltip showDelay=1000}}Change Control: Open · Protected · Locked{{/attach-tooltip}}
|
|
</div>
|
|
{{/if}}
|
|
|
|
{{#if contributionStatus}}
|
|
<div class="label-workflow-status">
|
|
{{contributionStatus}}
|
|
</div>
|
|
{{else}}
|
|
{{#if approvalStatus}}
|
|
<div class="label-workflow-status">
|
|
{{approvalStatus}}
|
|
</div>
|
|
{{/if}}
|
|
{{/if}}
|
|
|
|
{{#if document.template}}
|
|
<div class="label-template non-printable">
|
|
Template
|
|
{{#attach-tooltip showDelay=1000}}This is a template{{/attach-tooltip}}
|
|
</div>
|
|
{{/if}}
|
|
|
|
<Ui::UiSpacer @size="200" />
|
|
|
|
<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}}
|
|
{{#if unassigned}}
|
|
{{#if permissions.spaceManage}}
|
|
<div class="empty cursor-pointer" {{action "onEditCategory"}}>Unassigned</div>
|
|
{{else}}
|
|
<div class="empty">Unassigned</div>
|
|
{{/if}}
|
|
{{/if}}
|
|
</div>
|
|
|
|
{{document/sidebar-attachment document=document permissions=permissions}}
|
|
|
|
<Ui::UiSpacer @size="200" />
|