mirror of
https://github.com/documize/community.git
synced 2025-07-24 07:39:43 +02:00
69 lines
1.7 KiB
Handlebars
69 lines
1.7 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}}
|
|
</div>
|
|
|
|
{{#if (eq document.protection constants.ProtectionType.None)}}
|
|
<div class="label-open">
|
|
OPEN
|
|
</div>
|
|
{{/if}}
|
|
{{#if (eq document.protection constants.ProtectionType.Review)}}
|
|
<div class="label-protected">
|
|
PROTECTED
|
|
</div>
|
|
{{/if}}
|
|
{{#if (eq document.protection constants.ProtectionType.Lock)}}
|
|
<div class="label-locked">
|
|
LOCKED
|
|
</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" title="This is a template">
|
|
Template
|
|
</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}}" title="Category" />
|
|
{{cat.category}}
|
|
</div>
|
|
{{/each}}
|
|
{{#each tagz as |t|}}
|
|
<div class="meta-label">
|
|
<i class="dicon {{constants.Icon.Tag}}" title="tag" />
|
|
{{t}}
|
|
</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" />
|