1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-08-02 12:05:23 +02:00

Update document view to use new UI framework

1. Sidebar contains ToC & attachments.
2. Document meta moved up before content (to frame  context).
3. Per section toolbar re-designed.

Co-Authored-By: Harvey Kandola <harvey@documize.com>
This commit is contained in:
sauls8t 2018-12-19 18:36:45 +00:00
parent 3d2060ca60
commit 93253be0f2
27 changed files with 528 additions and 553 deletions

View file

@ -1,14 +1,13 @@
{{#if hasPages}}
{{#each pages key="id" as |item|}}
{{#if canEdit}}
<div class="start-section" {{action "onShowSectionWizard" item.page}}>
<div class="start-button">
<div class="cta">+ SECTION</div>
</div>
<div class="start-section">
<i class="dicon {{constants.Icon.Plus}}" {{action "onShowSectionWizard" item.page}}>
{{#attach-tooltip showDelay=1000}}Insert section here{{/attach-tooltip}}
</i>
</div>
{{else}}
<div class="margin-top-70" />
{{ui/ui-spacer size=700}}
{{/if}}
{{document/document-page
roles=roles
@ -32,10 +31,10 @@
{{/each}}
{{#if canEdit}}
<div class="start-section" {{action "onShowSectionWizard"}}>
<div class="start-button">
<div class="cta">+ SECTION</div>
</div>
<div class="start-section">
<i class="dicon {{constants.Icon.Plus}}" {{action "onShowSectionWizard"}}>
{{#attach-tooltip showDelay=1000}}Insert section here{{/attach-tooltip}}
</i>
</div>
{{/if}}
@ -56,17 +55,14 @@
</div>
</div>
{{/if}}
{{else }}
{{#if canEdit}}
<div class="start-section" {{action "onShowSectionWizard"}}>
<div class="start-button">
<div class="cta">+ SECTION</div>
</div>
<div class="start-section">
<i class="dicon {{constants.Icon.Plus}}" {{action "onShowSectionWizard"}}>
{{#attach-tooltip showDelay=1000}}Insert section here{{/attach-tooltip}}
</i>
</div>
{{/if}}
{{/if}}
{{#if canEdit}}