mirror of
https://github.com/documize/community.git
synced 2025-08-01 19:45:24 +02:00
Move doc meta fields out of sidebar
This commit is contained in:
parent
c0876e7be8
commit
c870547fa1
7 changed files with 48 additions and 122 deletions
|
@ -1,7 +1,41 @@
|
|||
<Ui::UiSpacer @size="300" />
|
||||
|
||||
<div class="document-meta">
|
||||
<div class="title {{if permissions.documentEdit "cursor-pointer"}}" {{action "onEditCategory"}}>CATEGORY / TAG</div>
|
||||
<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"}}" {{action "onEdit"}}>
|
||||
{{document.lifecycleLabel}}
|
||||
{{#attach-tooltip showDelay=1000}}Lifecycle: Draft · Live · Archived{{/attach-tooltip}}
|
||||
</div>
|
||||
|
||||
{{#if (eq document.protection constants.ProtectionType.None)}}
|
||||
<div class="label-open {{if permissions.documentEdit "cursor-pointer"}}" {{action "onEdit"}}>
|
||||
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 {{if permissions.documentEdit "cursor-pointer"}}" {{action "onEdit"}}>
|
||||
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 {{if permissions.documentEdit "cursor-pointer"}}" {{action "onEdit"}}>
|
||||
LOCKED
|
||||
{{#attach-tooltip showDelay=1000}}Change Control: Open · Protected · Locked{{/attach-tooltip}}
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
{{#if document.template}}
|
||||
<div class="label-template">
|
||||
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}}"/>
|
||||
|
@ -19,11 +53,11 @@
|
|||
|
||||
{{#if unassigned}}
|
||||
{{#if permissions.spaceManage}}
|
||||
{{#ui/ui-toolbar dark=false light=true raised=true large=false bordered=true}}
|
||||
{{ui/ui-toolbar-icon icon=constants.Icon.Plus color=constants.Color.Gray linkTo="document.settings"}}
|
||||
{{/ui/ui-toolbar}}
|
||||
<div class="empty cursor-pointer" {{action "onEditCategory"}}>Unassigned</div>
|
||||
{{else}}
|
||||
<div class="empty">Unassigned</div>
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
|
||||
<Ui::UiSpacer @size="200" />
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue