2018-06-15 14:25:05 +01:00
|
|
|
{{#if (eq document.lifecycle constants.Lifecycle.Live)}}
|
2018-12-08 20:54:19 +00:00
|
|
|
<div id="document-lifecycle-popover" class="document-lifecycle-live text-uppercase" {{action "onEditLifecycle"}}>{{document.lifecycleLabel}}</div>
|
2018-06-15 14:25:05 +01:00
|
|
|
{{/if}}
|
|
|
|
{{#if (eq document.lifecycle constants.Lifecycle.Draft)}}
|
2018-12-08 20:54:19 +00:00
|
|
|
<div id="document-lifecycle-popover" class="document-lifecycle-draft text-uppercase" {{action "onEditLifecycle"}}>{{document.lifecycleLabel}}</div>
|
2018-06-15 14:25:05 +01:00
|
|
|
{{/if}}
|
2017-12-04 17:25:33 +00:00
|
|
|
|
2018-06-15 14:25:05 +01:00
|
|
|
<div class="d-block d-sm-none margin-top-20" />
|
|
|
|
<div class="d-sm-inline-block margin-left-20" />
|
2018-01-22 10:31:03 +00:00
|
|
|
|
2018-06-15 14:25:05 +01:00
|
|
|
{{#if (eq document.protection constants.ProtectionType.None)}}
|
2018-12-08 20:54:19 +00:00
|
|
|
<div id="document-protection-popover" class="document-protection-unlocked text-uppercase" {{action "onEditProtection"}}>OPEN</div>
|
2018-06-15 14:25:05 +01:00
|
|
|
{{/if}}
|
|
|
|
{{#if (eq document.protection constants.ProtectionType.Review)}}
|
2018-12-08 20:54:19 +00:00
|
|
|
<div id="document-protection-popover" class="document-protection-review text-uppercase" {{action "onEditProtection"}}>PROTECTED</div>
|
2018-06-15 14:25:05 +01:00
|
|
|
{{/if}}
|
|
|
|
{{#if (eq document.protection constants.ProtectionType.Lock)}}
|
2018-12-08 20:54:19 +00:00
|
|
|
<div id="document-protection-popover" class="document-protection-locked text-uppercase" {{action "onEditProtection"}}>LOCKED</div>
|
2018-06-15 14:25:05 +01:00
|
|
|
{{/if}}
|
2018-01-22 10:31:03 +00:00
|
|
|
|
2018-06-15 14:25:05 +01:00
|
|
|
<div class="d-block d-sm-none margin-top-20" />
|
|
|
|
<div class="d-sm-inline-block margin-left-20" />
|
2018-01-22 10:31:03 +00:00
|
|
|
|
2018-06-15 14:25:05 +01:00
|
|
|
{{#each selectedCategories as |cat|}}
|
2018-12-08 20:54:19 +00:00
|
|
|
<div class="document-category {{if isSpaceAdmin "cursor-pointer"}}" {{action "onEditCategory"}}>
|
2018-06-15 14:25:05 +01:00
|
|
|
{{cat.category}}
|
2018-12-06 14:10:00 +00:00
|
|
|
{{#attach-tooltip showDelay=1000}}Category{{/attach-tooltip}}
|
2018-06-15 14:25:05 +01:00
|
|
|
</div>
|
|
|
|
{{/each}}
|
2018-05-30 11:27:29 +01:00
|
|
|
|
2018-06-15 14:25:05 +01:00
|
|
|
<div class="d-block d-sm-none margin-top-20" />
|
2018-05-30 11:27:29 +01:00
|
|
|
|
2018-12-08 20:54:19 +00:00
|
|
|
{{#each tagz as |t|}}
|
|
|
|
<div class="document-tag {{if isSpaceAdmin "cursor-pointer"}}" {{action "onEditCategory"}}>
|
2018-12-06 14:10:00 +00:00
|
|
|
{{#attach-tooltip showDelay=1000}}Tag{{/attach-tooltip}}
|
2018-12-08 20:54:19 +00:00
|
|
|
{{concat "#" t}}
|
2017-12-04 17:25:33 +00:00
|
|
|
</div>
|
2018-06-15 14:25:05 +01:00
|
|
|
{{/each}}
|
2017-12-04 17:25:33 +00:00
|
|
|
|
2018-06-15 14:25:05 +01:00
|
|
|
<div class="document-meta">
|
2018-06-27 18:56:03 +01:00
|
|
|
{{document/view-attachment document=document permissions=permissions}}
|
2018-06-15 14:25:05 +01:00
|
|
|
</div>
|
2017-12-04 17:25:33 +00:00
|
|
|
|
2018-06-15 14:25:05 +01:00
|
|
|
<div class="margin-top-70" />
|