mirror of
https://github.com/documize/community.git
synced 2025-08-02 20:15:26 +02:00
document.layout, print.css, content-linker
This commit is contained in:
parent
f24eb5ad42
commit
0539bb332a
10 changed files with 38 additions and 51 deletions
|
@ -114,7 +114,6 @@ export default Ember.Component.extend(NotifierMixin, TooltipMixin, {
|
|||
let level = 1;
|
||||
let beforePage = this.get('beforePage');
|
||||
|
||||
|
||||
if (is.not.null(beforePage)) {
|
||||
level = beforePage.get('level');
|
||||
|
||||
|
|
|
@ -25,7 +25,6 @@ export default Model.extend({
|
|||
userId: attr('string'),
|
||||
tags: attr('string'),
|
||||
template: attr('boolean'),
|
||||
layout: attr('string'),
|
||||
|
||||
// client-side property
|
||||
selected: attr('boolean', { defaultValue: false }),
|
||||
|
|
|
@ -112,21 +112,13 @@ export default Ember.Service.extend({
|
|||
let documentSlug = is.null(targetDocument) ? "d" : targetDocument.get('slug');
|
||||
|
||||
// handle section link
|
||||
if (link.linkType === "section") {
|
||||
if (link.linkType === "section" || link.linkType === "tab") {
|
||||
let options = {};
|
||||
options['page'] = link.targetId;
|
||||
options['pageId'] = link.targetId;
|
||||
router.transitionTo('document', link.folderId, folderSlug, link.documentId, documentSlug, { queryParams: options });
|
||||
return;
|
||||
}
|
||||
|
||||
// handle tab link
|
||||
if (link.linkType === "tab") {
|
||||
let options = {};
|
||||
options['mode'] = 'view';
|
||||
router.transitionTo('document.section', link.targetId, { queryParams: options });
|
||||
return;
|
||||
}
|
||||
|
||||
// handle document link
|
||||
if (link.linkType === "document") {
|
||||
router.transitionTo('document', link.folderId, folderSlug, link.documentId, documentSlug);
|
||||
|
|
|
@ -11,31 +11,30 @@
|
|||
@media print {
|
||||
.non-printable,
|
||||
.zone-navigation,
|
||||
.zone-sidebar {
|
||||
.zone-sidebar,
|
||||
#sidebar-wrapper,
|
||||
.document-heading,
|
||||
.edit-document-heading,
|
||||
#sidebar-toggle,
|
||||
.back-to-space,
|
||||
.start-section,
|
||||
.new-section-wizard {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
.zone-content {
|
||||
#page-content-wrapper, #wrapper {
|
||||
padding: 0 !important;
|
||||
}
|
||||
|
||||
.document-view {
|
||||
.attachment-zone,
|
||||
.document-summary,
|
||||
.document-tags,
|
||||
.page-toolbar {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
.non-printable-message,
|
||||
.print-title {
|
||||
display: block !important;
|
||||
}
|
||||
}
|
||||
|
||||
.doc-layout {
|
||||
padding: 0 !important;
|
||||
box-shadow: none !important;
|
||||
margin: 0 !important;
|
||||
}
|
||||
|
||||
.non-printable-message,
|
||||
.print-title {
|
||||
display: block !important;
|
||||
}
|
||||
|
||||
.is-a-tab, .is-a-page {
|
||||
padding: 0 !important;
|
||||
margin: 0 !important;
|
||||
box-shadow: none !important;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -129,7 +129,7 @@
|
|||
padding: 0px 50px;
|
||||
height: 65px;
|
||||
overflow: hidden;
|
||||
cursor: normal;
|
||||
cursor: default;
|
||||
|
||||
.page-title {
|
||||
> .page-toolbar {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{{#unless editMode}}
|
||||
<div class="{{if isEditor 'cursor-pointer'}}" onclick={{if isEditor (action 'toggleEdit')}}>
|
||||
<div class="document-heading {{if isEditor 'cursor-pointer'}}" onclick={{if isEditor (action 'toggleEdit')}}>
|
||||
<h1 class="doc-title">{{document.name}}</h1>
|
||||
<div class="doc-excerpt">{{document.excerpt}}</div>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue