mirror of
https://github.com/documize/community.git
synced 2025-08-09 15:35:27 +02:00
new template marker
This commit is contained in:
parent
14f56383a2
commit
a815d27993
4 changed files with 7 additions and 11 deletions
|
@ -223,10 +223,6 @@ export default Ember.Service.extend({
|
||||||
pages.pushObject(models.PageModel.create(page));
|
pages.pushObject(models.PageModel.create(page));
|
||||||
});
|
});
|
||||||
|
|
||||||
if (pages.length > 0) {
|
|
||||||
Ember.set(pages[0], 'firstPage', true);
|
|
||||||
}
|
|
||||||
|
|
||||||
return pages;
|
return pages;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
|
@ -71,10 +71,12 @@
|
||||||
.is-template {
|
.is-template {
|
||||||
color: $color-green;
|
color: $color-green;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
|
font-size: 1.3em;
|
||||||
|
margin-bottom: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
> .pages {
|
> .pages {
|
||||||
margin: 20px 0 50px 0;
|
margin: 30px 0 50px 0;
|
||||||
|
|
||||||
> .wysiwyg {
|
> .wysiwyg {
|
||||||
> .is-a-page {
|
> .is-a-page {
|
||||||
|
|
|
@ -38,7 +38,6 @@
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
<div class="actions pull-right hidden-xs hidden-sm">
|
<div class="actions pull-right hidden-xs hidden-sm">
|
||||||
|
|
||||||
{{#link-to 'folders.folder' folder.id folder.slug}}
|
{{#link-to 'folders.folder' folder.id folder.slug}}
|
||||||
<div class="regular-button button-blue" id="add-section-button">
|
<div class="regular-button button-blue" id="add-section-button">
|
||||||
<i class="material-icons">arrow_back</i>
|
<i class="material-icons">arrow_back</i>
|
||||||
|
|
|
@ -1,5 +1,9 @@
|
||||||
<div class="document-container">
|
<div class="document-container">
|
||||||
<div class="content">
|
<div class="content">
|
||||||
|
{{#if document.template}}
|
||||||
|
<div class="is-template">TEMPLATE</div>
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
<div class="document-summary">
|
<div class="document-summary">
|
||||||
{{document/tag-editor documentTags=document.tags isEditor=isEditor onChange=(action 'onTagChange')}}
|
{{document/tag-editor documentTags=document.tags isEditor=isEditor onChange=(action 'onTagChange')}}
|
||||||
</div>
|
</div>
|
||||||
|
@ -33,11 +37,6 @@
|
||||||
<div class="wysiwyg">
|
<div class="wysiwyg">
|
||||||
<div id="page-{{ page.id }}" class="is-a-page" data-id="{{ page.id }}" data-type="{{ page.contentType }}">
|
<div id="page-{{ page.id }}" class="is-a-page" data-id="{{ page.id }}" data-type="{{ page.contentType }}">
|
||||||
{{document/page-heading tagName=page.tagName document=document folder=folder page=page isEditor=isEditor onDeletePage=(action 'onDeletePage') }}
|
{{document/page-heading tagName=page.tagName document=document folder=folder page=page isEditor=isEditor onDeletePage=(action 'onDeletePage') }}
|
||||||
{{#if page.firstPage }}
|
|
||||||
{{#if document.template}}
|
|
||||||
<div class="is-template">TEMPLATE</div>
|
|
||||||
{{/if}}
|
|
||||||
{{/if}}
|
|
||||||
{{section/base-renderer page=page}}
|
{{section/base-renderer page=page}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue