diff --git a/web/app/components/document/sidebar.hbs b/web/app/components/document/sidebar.hbs index 285760087..0da01a799 100644 --- a/web/app/components/document/sidebar.hbs +++ b/web/app/components/document/sidebar.hbs @@ -44,7 +44,7 @@ }} " /> - {{#if this.isDraft}} + {{#if (and this.isDraft this.isOwner)}} {{/if}} - {{#if this.editingIsDisabled}} -

{{this.title}}

- {{else}} + {{#if this.isOwner}}
{{this.title}} {{else}}

Enter a title here.

+ > + Enter a title here. + {{/unless}} <:editing as |F|> @@ -132,6 +132,11 @@
+ {{else}} +

{{this.title}}

{{/if}} @@ -140,12 +145,9 @@ {{! Summary }}
- {{#if this.editingIsDisabled}} -

{{this.summary}}

- {{else}} + {{#if this.isOwner}} + {{else}} +

+ {{this.summary}} +

{{/if}}
@@ -188,9 +197,10 @@
- {{#if this.isDraft}} + {{#if (and this.isDraft this.isOwner)}}
{{else}} @@ -218,6 +229,7 @@ {{#if this.isOwner}} {{else}} - {{#if this.contributors.length}} -
    - {{#each this.contributors as |contributor|}} -
  1. - -
  2. - {{/each}} -
- {{else}} - No contributors - {{/if}} +
+ {{#if this.contributors.length}} +
    + {{#each this.contributors as |contributor|}} +
  1. + +
  2. + {{/each}} +
+ {{else}} + No contributors + {{/if}} +
{{/if}}
@@ -270,6 +284,7 @@ {{#if this.isOwner}} {{else}} - {{#if this.approvers.length}} -
    - {{#each this.approvers as |approver|}} -
  1. - -
  2. - {{/each}} -
- {{else}} - No approvers - {{/if}} +
+ {{#if this.approvers.length}} +
    + {{#each this.approvers as |approver|}} +
  1. + +
  2. + {{/each}} +
+ {{else}} + No approvers + {{/if}} +
{{/if}}
@@ -346,12 +363,7 @@ {{#each-in this.customEditableFields as |field attributes|}} - {{#if - (or - (and (not this.editingIsDisabled) (not this.docIsApproved)) - attributes.value - ) - }} + {{#if (or attributes.value this.isOwner)}}
{{/if}} @@ -370,7 +382,7 @@ - {{#if this.userHasEditPrivileges}} + {{#if this.isOwner}}