mirror of
https://github.com/documize/community.git
synced 2025-08-09 07:25:23 +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));
|
||||
});
|
||||
|
||||
if (pages.length > 0) {
|
||||
Ember.set(pages[0], 'firstPage', true);
|
||||
}
|
||||
|
||||
return pages;
|
||||
});
|
||||
},
|
||||
|
|
|
@ -71,10 +71,12 @@
|
|||
.is-template {
|
||||
color: $color-green;
|
||||
font-weight: bold;
|
||||
font-size: 1.3em;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
> .pages {
|
||||
margin: 20px 0 50px 0;
|
||||
margin: 30px 0 50px 0;
|
||||
|
||||
> .wysiwyg {
|
||||
> .is-a-page {
|
||||
|
|
|
@ -38,7 +38,6 @@
|
|||
{{/if}}
|
||||
|
||||
<div class="actions pull-right hidden-xs hidden-sm">
|
||||
|
||||
{{#link-to 'folders.folder' folder.id folder.slug}}
|
||||
<div class="regular-button button-blue" id="add-section-button">
|
||||
<i class="material-icons">arrow_back</i>
|
||||
|
|
|
@ -1,5 +1,9 @@
|
|||
<div class="document-container">
|
||||
<div class="content">
|
||||
{{#if document.template}}
|
||||
<div class="is-template">TEMPLATE</div>
|
||||
{{/if}}
|
||||
|
||||
<div class="document-summary">
|
||||
{{document/tag-editor documentTags=document.tags isEditor=isEditor onChange=(action 'onTagChange')}}
|
||||
</div>
|
||||
|
@ -33,11 +37,6 @@
|
|||
<div class="wysiwyg">
|
||||
<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') }}
|
||||
{{#if page.firstPage }}
|
||||
{{#if document.template}}
|
||||
<div class="is-template">TEMPLATE</div>
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
{{section/base-renderer page=page}}
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue