mirror of
https://github.com/documize/community.git
synced 2025-07-19 05:09:42 +02:00
59 lines
2.3 KiB
Handlebars
59 lines
2.3 KiB
Handlebars
<div class="document-meta">
|
|
<div class="title">VERSION</div>
|
|
{{#if (gt versions.length 0)}}
|
|
{{#ui/ui-toolbar dark=false light=true raised=true large=false bordered=true}}
|
|
{{ui/ui-toolbar-label label=document.versionId color=constants.Color.Gray}}
|
|
{{#attach-popover class="ember-attacher-popper" hideOn="clickout" showOn="click" isShown=false}}
|
|
<div class="menu">
|
|
<li class="item header">Select version to view</li>
|
|
{{#each versions as |version|}}
|
|
<a class="item" href="#" {{action "onSelectVersion" version}}>{{version.versionId}}</a>
|
|
{{/each}}
|
|
</div>
|
|
{{/attach-popover}}
|
|
{{/ui/ui-toolbar}}
|
|
{{else}}
|
|
{{#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}}
|
|
{{else}}
|
|
<div class="empty">Not versioned</div>
|
|
{{/if}}
|
|
{{/if}}
|
|
|
|
{{ui/ui-spacer size=200}}
|
|
|
|
<div class="title {{if permissions.documentEdit "cursor-pointer"}}" {{action "onEditStatus"}}>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 document.template}}
|
|
<div class="label-template">
|
|
Template
|
|
{{#attach-tooltip showDelay=1000}}This is a template{{/attach-tooltip}}
|
|
</div>
|
|
{{/if}}
|
|
</div>
|