mirror of
https://github.com/documize/community.git
synced 2025-07-27 17:19:42 +02:00
new layout designs!
This commit is contained in:
parent
752d6aa9e3
commit
4ceddfc1f3
20 changed files with 253 additions and 174 deletions
|
@ -34,18 +34,6 @@ export default Ember.Component.extend(TooltipMixin, NotifierMixin, {
|
||||||
didInsertElement() {
|
didInsertElement() {
|
||||||
this.eventBus.subscribe('resized', this, 'positionTool');
|
this.eventBus.subscribe('resized', this, 'positionTool');
|
||||||
this.eventBus.subscribe('scrolled', this, 'positionTool');
|
this.eventBus.subscribe('scrolled', this, 'positionTool');
|
||||||
|
|
||||||
// new Waypoint({
|
|
||||||
// element: document.getElementById('zone-header'),
|
|
||||||
// handler: function(direction) {
|
|
||||||
// console.log(direction);
|
|
||||||
// if (direction === 'up') {
|
|
||||||
// $(".scroll-tool").addClass('hide');
|
|
||||||
// console.log("hiding");
|
|
||||||
// }
|
|
||||||
// },
|
|
||||||
// offset: 50
|
|
||||||
// });
|
|
||||||
},
|
},
|
||||||
|
|
||||||
willDestroyElement() {
|
willDestroyElement() {
|
||||||
|
|
|
@ -22,7 +22,7 @@ export default Ember.Component.extend(NotifierMixin, TooltipMixin, {
|
||||||
templateService: Ember.inject.service('template'),
|
templateService: Ember.inject.service('template'),
|
||||||
folderService: Ember.inject.service('folder'),
|
folderService: Ember.inject.service('folder'),
|
||||||
session: Ember.inject.service(),
|
session: Ember.inject.service(),
|
||||||
|
showToolbar: false,
|
||||||
folder: {},
|
folder: {},
|
||||||
busy: false,
|
busy: false,
|
||||||
importedDocuments: [],
|
importedDocuments: [],
|
||||||
|
@ -31,9 +31,12 @@ export default Ember.Component.extend(NotifierMixin, TooltipMixin, {
|
||||||
moveFolderId: "",
|
moveFolderId: "",
|
||||||
|
|
||||||
didReceiveAttrs() {
|
didReceiveAttrs() {
|
||||||
|
let self = this;
|
||||||
|
|
||||||
this.set('isFolderOwner', this.get('folder.userId') === this.get("session.user.id"));
|
this.set('isFolderOwner', this.get('folder.userId') === this.get("session.user.id"));
|
||||||
|
|
||||||
let self = this;
|
let show = this.get('isFolderOwner') || this.get('hasSelectedDocuments') || this.get('folderService').get('canEditCurrentFolder');
|
||||||
|
this.set('showToolbar', show);
|
||||||
|
|
||||||
this.get('templateService').getSavedTemplates().then(function(saved) {
|
this.get('templateService').getSavedTemplates().then(function(saved) {
|
||||||
let emptyTemplate = {
|
let emptyTemplate = {
|
||||||
|
@ -62,6 +65,7 @@ export default Ember.Component.extend(NotifierMixin, TooltipMixin, {
|
||||||
this.addTooltip(document.getElementById("folder-settings-button"));
|
this.addTooltip(document.getElementById("folder-settings-button"));
|
||||||
}
|
}
|
||||||
if (this.get('folderService').get('canEditCurrentFolder')) {
|
if (this.get('folderService').get('canEditCurrentFolder')) {
|
||||||
|
this.addTooltip(document.getElementById("import-document-button"));
|
||||||
this.addTooltip(document.getElementById("start-document-button"));
|
this.addTooltip(document.getElementById("start-document-button"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -22,12 +22,17 @@ export default Ember.Component.extend(TooltipMixin, {
|
||||||
hasProtectedFolders: false,
|
hasProtectedFolders: false,
|
||||||
hasPrivateFolders: false,
|
hasPrivateFolders: false,
|
||||||
newFolder: "",
|
newFolder: "",
|
||||||
|
showScrollTool: false,
|
||||||
|
|
||||||
didInsertElement() {
|
didInsertElement() {
|
||||||
this._super(...arguments);
|
this._super(...arguments);
|
||||||
|
|
||||||
if (this.session.authenticated) {
|
if (this.session.authenticated) {
|
||||||
this.addTooltip(document.getElementById("add-folder-button"));
|
this.addTooltip(document.getElementById("add-space-button"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.eventBus.subscribe('resized', this, 'positionTool');
|
||||||
|
this.eventBus.subscribe('scrolled', this, 'positionTool');
|
||||||
},
|
},
|
||||||
|
|
||||||
didReceiveAttrs() {
|
didReceiveAttrs() {
|
||||||
|
@ -65,6 +70,20 @@ export default Ember.Component.extend(TooltipMixin, {
|
||||||
this.destroyTooltips();
|
this.destroyTooltips();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
positionTool() {
|
||||||
|
let s = $(".scroll-space-tool");
|
||||||
|
let windowpos = $(window).scrollTop();
|
||||||
|
|
||||||
|
if (windowpos >= 300) {
|
||||||
|
this.set('showScrollTool', true);
|
||||||
|
s.addClass("stuck-space-tool");
|
||||||
|
s.css('left', parseInt($(".zone-sidebar").css('width')) - 18 + 'px');
|
||||||
|
} else {
|
||||||
|
this.set('showScrollTool', false);
|
||||||
|
s.removeClass("stuck-space-tool");
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
actions: {
|
actions: {
|
||||||
addFolder() {
|
addFolder() {
|
||||||
var folderName = this.get('newFolder');
|
var folderName = this.get('newFolder');
|
||||||
|
@ -78,6 +97,14 @@ export default Ember.Component.extend(TooltipMixin, {
|
||||||
|
|
||||||
this.set('newFolder', "");
|
this.set('newFolder', "");
|
||||||
return true;
|
return true;
|
||||||
|
},
|
||||||
|
|
||||||
|
scrollTop() {
|
||||||
|
this.set('showScrollTool', false);
|
||||||
|
|
||||||
|
$("html,body").animate({
|
||||||
|
scrollTop: 0
|
||||||
|
}, 500, "linear");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -107,7 +107,7 @@ export function documentFileIcon(params) {
|
||||||
case "xslt":
|
case "xslt":
|
||||||
}
|
}
|
||||||
|
|
||||||
return new Ember.Handlebars.SafeString(html);
|
return new Ember.String.htmlSafe(html);
|
||||||
}
|
}
|
||||||
|
|
||||||
export default Ember.Helper.helper(documentFileIcon);
|
export default Ember.Helper.helper(documentFileIcon);
|
||||||
|
|
|
@ -2,15 +2,6 @@
|
||||||
|
|
||||||
{{layout/zone-navigation}}
|
{{layout/zone-navigation}}
|
||||||
|
|
||||||
{{#layout/zone-header title=model.name message=model.excerpt}}
|
|
||||||
{{document/document-toolbar document=model pages=pages folder=folder owner=owner
|
|
||||||
isEditor=isEditor users=users
|
|
||||||
onSaveTemplate=(action 'onSaveTemplate')
|
|
||||||
onDocumentChange=(action 'onDocumentChange')
|
|
||||||
onAttachmentUpload=(action 'onAttachmentUpload')
|
|
||||||
onDocumentDelete=(action 'onDocumentDelete')}}
|
|
||||||
{{/layout/zone-header}}
|
|
||||||
|
|
||||||
{{#layout/zone-sidebar}}
|
{{#layout/zone-sidebar}}
|
||||||
{{document/document-sidebar document=model meta=meta folder=folder pages=pages page=page owner=owner isEditor=isEditor
|
{{document/document-sidebar document=model meta=meta folder=folder pages=pages page=page owner=owner isEditor=isEditor
|
||||||
onAddSection=(action 'onAddSection')
|
onAddSection=(action 'onAddSection')
|
||||||
|
@ -20,6 +11,13 @@
|
||||||
{{/layout/zone-sidebar}}
|
{{/layout/zone-sidebar}}
|
||||||
|
|
||||||
{{#layout/zone-content}}
|
{{#layout/zone-content}}
|
||||||
|
{{document/document-toolbar document=model pages=pages folder=folder owner=owner
|
||||||
|
isEditor=isEditor users=users
|
||||||
|
onSaveTemplate=(action 'onSaveTemplate')
|
||||||
|
onDocumentChange=(action 'onDocumentChange')
|
||||||
|
onAttachmentUpload=(action 'onAttachmentUpload')
|
||||||
|
onDocumentDelete=(action 'onDocumentDelete')}}
|
||||||
|
|
||||||
{{document/document-view document=model pages=pages attachments=attachments folder=folder folders=folders
|
{{document/document-view document=model pages=pages attachments=attachments folder=folder folders=folders
|
||||||
isEditor=isEditor
|
isEditor=isEditor
|
||||||
onAttachmentDeleted=(action 'onAttachmentDeleted')
|
onAttachmentDeleted=(action 'onAttachmentDeleted')
|
||||||
|
|
|
@ -2,7 +2,11 @@
|
||||||
|
|
||||||
{{layout/zone-navigation}}
|
{{layout/zone-navigation}}
|
||||||
|
|
||||||
{{#layout/zone-header title=model.folder.name message="A space provides a place for related content"}}
|
{{#layout/zone-sidebar}}
|
||||||
|
{{folder/folders-list folders=model.folders folder=model.folder onFolderAdd=(action 'onFolderAdd')}}
|
||||||
|
{{/layout/zone-sidebar}}
|
||||||
|
|
||||||
|
{{#layout/zone-content}}
|
||||||
{{folder/folder-toolbar
|
{{folder/folder-toolbar
|
||||||
folders=model.folders
|
folders=model.folders
|
||||||
folder=model.folder
|
folder=model.folder
|
||||||
|
@ -11,13 +15,7 @@
|
||||||
onDeleteDocument=(action 'onDeleteDocument')
|
onDeleteDocument=(action 'onDeleteDocument')
|
||||||
onMoveDocument=(action 'onMoveDocument')
|
onMoveDocument=(action 'onMoveDocument')
|
||||||
showDocument=(action 'showDocument')}}
|
showDocument=(action 'showDocument')}}
|
||||||
{{/layout/zone-header}}
|
|
||||||
|
|
||||||
{{#layout/zone-sidebar}}
|
|
||||||
{{folder/folders-list folders=model.folders onFolderAdd=(action 'onFolderAdd')}}
|
|
||||||
{{/layout/zone-sidebar}}
|
|
||||||
|
|
||||||
{{#layout/zone-content}}
|
|
||||||
{{folder/documents-list documents=model.documents folder=model.folder isFolderOwner=isFolderOwner onDocumentsChecked=(action 'onDocumentsChecked') }}
|
{{folder/documents-list documents=model.documents folder=model.folder isFolderOwner=isFolderOwner onDocumentsChecked=(action 'onDocumentsChecked') }}
|
||||||
{{/layout/zone-content}}
|
{{/layout/zone-content}}
|
||||||
|
|
||||||
|
|
|
@ -2,16 +2,14 @@
|
||||||
|
|
||||||
{{layout/zone-navigation}}
|
{{layout/zone-navigation}}
|
||||||
|
|
||||||
{{#layout/zone-header title=model.name message="Settings, sharing, permissions and deletion"}}
|
{{#layout/zone-sidebar}}
|
||||||
{{#link-to 'folders.folder' model.id model.slug}}
|
{{#link-to 'folders.folder' model.id model.slug}}
|
||||||
<div class="regular-button button-white">
|
<div class="regular-button button-white">
|
||||||
<i class="material-icons">arrow_back</i>
|
<i class="material-icons">arrow_back</i>
|
||||||
<div class="name">space</div>
|
<div class="name">space</div>
|
||||||
</div>
|
</div>
|
||||||
{{/link-to}}
|
{{/link-to}}
|
||||||
{{/layout/zone-header}}
|
|
||||||
|
|
||||||
{{#layout/zone-sidebar}}
|
|
||||||
<div class="sidebar-menu">
|
<div class="sidebar-menu">
|
||||||
<ul class="options">
|
<ul class="options">
|
||||||
<li class="option {{if tabGeneral "selected"}}" {{action 'selectTab' 'tabGeneral'}}>General</li>
|
<li class="option {{if tabGeneral "selected"}}" {{action 'selectTab' 'tabGeneral'}}>General</li>
|
||||||
|
|
|
@ -22,12 +22,12 @@ export default Ember.Route.extend(ApplicationRouteMixin, {
|
||||||
session: service(),
|
session: service(),
|
||||||
|
|
||||||
beforeModel(transition) {
|
beforeModel(transition) {
|
||||||
|
// start TODO: ugly hack
|
||||||
let MutationObserver = window.MutationObserver || window.WebKitMutationObserver;
|
let MutationObserver = window.MutationObserver || window.WebKitMutationObserver;
|
||||||
|
|
||||||
let observer = new MutationObserver(function(/*mutations, observer*/) {
|
let observer = new MutationObserver(function(/*mutations, observer*/) {
|
||||||
// fired when a mutation occurs
|
// fired when a mutation occurs
|
||||||
// console.log(mutations, observer);
|
// console.log(mutations, observer);
|
||||||
$("#zone-sidebar").css('height', $(document).height() - $("#zone-navigation").height() - $("#zone-header").height() - 35);
|
$("#zone-sidebar").css('height', $(document).height() - $("#zone-navigation").height());
|
||||||
});
|
});
|
||||||
|
|
||||||
observer.observe(document, {
|
observer.observe(document, {
|
||||||
|
@ -35,6 +35,7 @@ export default Ember.Route.extend(ApplicationRouteMixin, {
|
||||||
attributes: false,
|
attributes: false,
|
||||||
childList: true
|
childList: true
|
||||||
});
|
});
|
||||||
|
// end TODO: ugly hack
|
||||||
|
|
||||||
return this.get('appMeta').boot(transition.targetName).then(data => {
|
return this.get('appMeta').boot(transition.targetName).then(data => {
|
||||||
if (this.get('session.session.authenticator') !== "authenticator:documize" && data.allowAnonymousAccess) {
|
if (this.get('session.session.authenticator') !== "authenticator:documize" && data.allowAnonymousAccess) {
|
||||||
|
@ -47,7 +48,10 @@ export default Ember.Route.extend(ApplicationRouteMixin, {
|
||||||
|
|
||||||
actions: {
|
actions: {
|
||||||
willTransition: function ( /*transition*/ ) {
|
willTransition: function ( /*transition*/ ) {
|
||||||
|
// start TODO: ugly hack
|
||||||
$("#zone-sidebar").css('height', 'auto');
|
$("#zone-sidebar").css('height', 'auto');
|
||||||
|
// end TODO: ugly hack
|
||||||
|
|
||||||
Mousetrap.reset();
|
Mousetrap.reset();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,6 @@
|
||||||
@import "view/page-auth.scss";
|
@import "view/page-auth.scss";
|
||||||
@import "view/page-onboard.scss";
|
@import "view/page-onboard.scss";
|
||||||
@import "view/page-exceptions.scss";
|
@import "view/page-exceptions.scss";
|
||||||
@import "view/document/toolbar.scss";
|
|
||||||
@import "view/document/sidebar.scss";
|
@import "view/document/sidebar.scss";
|
||||||
@import "view/document/content.scss";
|
@import "view/document/content.scss";
|
||||||
@import "view/document/wysiwyg.scss";
|
@import "view/document/wysiwyg.scss";
|
||||||
|
|
|
@ -17,6 +17,7 @@
|
||||||
.text-left { text-align: left; }
|
.text-left { text-align: left; }
|
||||||
.text-right { text-align: right; }
|
.text-right { text-align: right; }
|
||||||
.text-center { text-align: center; }
|
.text-center { text-align: center; }
|
||||||
|
.center { margin: 0 auto; }
|
||||||
.bold { font-weight: bold; }
|
.bold { font-weight: bold; }
|
||||||
.italic { font-style: italic; }
|
.italic { font-style: italic; }
|
||||||
.text-uppercase { text-transform: uppercase; }
|
.text-uppercase { text-transform: uppercase; }
|
||||||
|
|
|
@ -1,9 +1,22 @@
|
||||||
.document-sidebar {
|
.document-sidebar {
|
||||||
@extend .no-select;
|
@extend .no-select;
|
||||||
|
margin-top: 40px;
|
||||||
|
width: 100%;
|
||||||
|
|
||||||
|
.space-button {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.space-name {
|
||||||
|
max-width: 90%;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
overflow: hidden;
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
|
||||||
> .summary-line {
|
> .summary-line {
|
||||||
color: $color-gray;
|
color: $color-gray;
|
||||||
margin: 20px 0 30px 0;
|
margin: 30px 0;
|
||||||
|
|
||||||
>.items {
|
>.items {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
|
@ -43,6 +56,12 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
> .active {
|
||||||
|
> .metric {
|
||||||
|
color: $color-link;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,8 +0,0 @@
|
||||||
.document-toolbar {
|
|
||||||
.space-name {
|
|
||||||
max-width: 200px;
|
|
||||||
text-overflow: ellipsis;
|
|
||||||
overflow: hidden;
|
|
||||||
white-space: nowrap;
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -9,7 +9,8 @@
|
||||||
margin: 0;
|
margin: 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
font-size: 1rem;
|
font-size: 1rem;
|
||||||
padding: 15px 40px 15px 40px;
|
padding: 10px 40px 10px 40px;
|
||||||
|
|
||||||
.content {
|
.content {
|
||||||
> .title {
|
> .title {
|
||||||
padding-left: 15px;
|
padding-left: 15px;
|
||||||
|
@ -49,6 +50,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.header-button {
|
.header-button {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
@ -63,14 +65,21 @@
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
background-color: $color-white;
|
background-color: $color-white;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
@extend .z-depth-1;
|
@extend .z-depth-1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&:before {
|
||||||
|
border-radius: 0;
|
||||||
|
}
|
||||||
|
|
||||||
> .material-icons {
|
> .material-icons {
|
||||||
color: $color-primary;
|
color: $color-primary;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
font-size: 1.4em;
|
font-size: 1.4em;
|
||||||
}
|
}
|
||||||
|
|
||||||
> .initials {
|
> .initials {
|
||||||
color: $color-primary;
|
color: $color-primary;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
@ -79,37 +88,34 @@
|
||||||
line-height: 2.6rem;
|
line-height: 2.6rem;
|
||||||
font-family: open_sansregular;
|
font-family: open_sansregular;
|
||||||
}
|
}
|
||||||
&:before {
|
|
||||||
border-radius: 0;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.zone-header {
|
// .zone-header {
|
||||||
background-color: $color-header;
|
// background-color: $color-header;
|
||||||
padding: 0 40px 0 40px;
|
// padding: 0 40px 0 40px;
|
||||||
> .info {
|
// > .info {
|
||||||
padding: 20px 0 20px 0;
|
// padding: 20px 0 20px 0;
|
||||||
> .title {
|
// > .title {
|
||||||
color: $color-off-black;
|
// color: $color-off-black;
|
||||||
font-size: 1.2rem;
|
// font-size: 1.2rem;
|
||||||
}
|
// }
|
||||||
> .message {
|
// > .message {
|
||||||
color: $color-gray;
|
// color: $color-gray;
|
||||||
font-size: 1rem;
|
// font-size: 1rem;
|
||||||
margin: 10px 0 0 5px;
|
// margin: 10px 0 0 5px;
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
> .actions {
|
// > .actions {
|
||||||
padding: 20px 0 20px 0;
|
// padding: 20px 0 20px 0;
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
|
|
||||||
.zone-sidebar {
|
.zone-sidebar {
|
||||||
|
background-color: $color-header;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
min-height: 100%;
|
min-height: 100%;
|
||||||
padding: 0 40px 0 40px;
|
padding: 0 40px 0 40px;
|
||||||
border-right: 1px solid $color-border;
|
|
||||||
float: left;
|
float: left;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,12 +1,39 @@
|
||||||
|
|
||||||
.folders-list {
|
.folders-list {
|
||||||
> .add-space-action {
|
margin-top: 30px;
|
||||||
text-align: center;
|
|
||||||
margin-bottom: 30px;
|
.doc-tool {
|
||||||
|
position: absolute;
|
||||||
|
top: 150px;
|
||||||
|
right: -18px;
|
||||||
|
z-index: 999;
|
||||||
|
}
|
||||||
|
|
||||||
|
.scroll-space-tool {
|
||||||
|
position: absolute;
|
||||||
|
top: 150px;
|
||||||
|
right: -18px;
|
||||||
|
z-index: 888;
|
||||||
|
-webkit-animation: fadein 1s; /* Safari, Chrome and Opera > 12.1 */
|
||||||
|
-moz-animation: fadein 1s; /* Firefox < 16 */
|
||||||
|
-ms-animation: fadein 1s; /* Internet Explorer */
|
||||||
|
-o-animation: fadein 1s; /* Opera < 12.1 */
|
||||||
|
animation: fadein 1s;
|
||||||
|
}
|
||||||
|
|
||||||
|
.stuck-space-tool {
|
||||||
|
position: fixed !important;
|
||||||
|
top: 150px !important;
|
||||||
|
right: 0;
|
||||||
|
left: 0;
|
||||||
|
-webkit-animation: fadein 1s; /* Safari, Chrome and Opera > 12.1 */
|
||||||
|
-moz-animation: fadein 1s; /* Firefox < 16 */
|
||||||
|
-ms-animation: fadein 1s; /* Internet Explorer */
|
||||||
|
-o-animation: fadein 1s; /* Opera < 12.1 */
|
||||||
|
animation: fadein 1s;
|
||||||
}
|
}
|
||||||
|
|
||||||
> .section {
|
> .section {
|
||||||
margin: 0 0 20px 0;
|
margin: 0 0 40px 0;
|
||||||
|
|
||||||
> .heading {
|
> .heading {
|
||||||
font-size: 0.9rem;
|
font-size: 0.9rem;
|
||||||
|
|
|
@ -50,7 +50,7 @@
|
||||||
transition: .3s;
|
transition: .3s;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
border: 1px solid $color-gray;
|
border: 1px solid $color-stroke;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
@extend .no-select;
|
@extend .no-select;
|
||||||
@include ease-in();
|
@include ease-in();
|
||||||
|
@ -61,7 +61,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
i {
|
i {
|
||||||
color: $color-gray;
|
color: $color-stroke;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,22 +1,29 @@
|
||||||
<div class="document-sidebar">
|
<div class="document-sidebar">
|
||||||
|
{{#link-to 'folders.folder' folder.id folder.slug}}
|
||||||
|
<div class="regular-button button-white space-button">
|
||||||
|
<i class="material-icons">arrow_back</i>
|
||||||
|
<div class="name space-name">{{folder.name}}</div>
|
||||||
|
</div>
|
||||||
|
{{/link-to}}
|
||||||
|
|
||||||
{{#if session.authenticated}}
|
{{#if session.authenticated}}
|
||||||
<div class="summary-line hidden-xs hidden-sm">
|
<div class="summary-line hidden-xs hidden-sm">
|
||||||
<ul class="items">
|
<ul class="items">
|
||||||
<li class="item" {{action 'showToc'}}>
|
<li class="item {{if showToc "active"}}" {{action 'showToc'}}>
|
||||||
<div class="metric">
|
<div class="metric">
|
||||||
<div class="number">{{pages.length}}</div>
|
<div class="number">{{pages.length}}</div>
|
||||||
<div class="label">sections</div>
|
<div class="label">sections</div>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
<li class="divider" />
|
<li class="divider" />
|
||||||
<li class="item" {{action 'showViews'}}>
|
<li class="item {{if showViews "active"}}" {{action 'showViews'}}>
|
||||||
<div class="metric">
|
<div class="metric">
|
||||||
<div class="number">{{meta.viewers.length}}</div>
|
<div class="number">{{meta.viewers.length}}</div>
|
||||||
<div class="label">views</div>
|
<div class="label">views</div>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
<li class="divider" />
|
<li class="divider" />
|
||||||
<li class="item" {{action 'showContributions'}}>
|
<li class="item {{if showContributions "active"}}" {{action 'showContributions'}}>
|
||||||
<div class="metric">
|
<div class="metric">
|
||||||
<div class="number">{{meta.editors.length}}</div>
|
<div class="number">{{meta.editors.length}}</div>
|
||||||
<div class="label">activity</div>
|
<div class="label">activity</div>
|
||||||
|
|
|
@ -1,35 +1,28 @@
|
||||||
<div>
|
<div class="pull-right hidden-xs hidden-sm">
|
||||||
{{#link-to 'folders.folder' folder.id folder.slug}}
|
|
||||||
<div class="regular-button button-white">
|
|
||||||
<i class="material-icons">arrow_back</i>
|
|
||||||
<div class="name space-name">{{folder.name}}</div>
|
|
||||||
</div>
|
|
||||||
{{/link-to}}
|
|
||||||
|
|
||||||
{{#if isEditor}}
|
{{#if isEditor}}
|
||||||
<div class="button-gap"></div>
|
<div class="button-gap"></div>
|
||||||
<div class="square-button-white" id="set-meta-button" data-tooltip="Set meta" data-tooltip-position="top center">
|
<div class="round-button-mono" id="set-meta-button" data-tooltip="Set meta" data-tooltip-position="top center">
|
||||||
<i class="material-icons">settings</i>
|
<i class="material-icons color-gray">settings</i>
|
||||||
</div>
|
</div>
|
||||||
<div class="button-gap"></div>
|
<div class="button-gap"></div>
|
||||||
<div class="square-button-white" id="attachment-button" data-tooltip="Attach file" data-tooltip-position="top center">
|
<div class="round-button-mono" id="attachment-button" data-tooltip="Attach file" data-tooltip-position="top center">
|
||||||
<i class="material-icons">attach_file</i>
|
<i class="material-icons color-gray">attach_file</i>
|
||||||
</div>
|
</div>
|
||||||
<div class="button-gap"></div>
|
<div class="button-gap"></div>
|
||||||
<div class="square-button-white" id="save-template-button" data-tooltip="Save as template" data-tooltip-position="top center">
|
<div class="round-button-mono" id="save-template-button" data-tooltip="Save as template" data-tooltip-position="top center">
|
||||||
<i class="material-icons">content_copy</i>
|
<i class="material-icons color-gray">content_copy</i>
|
||||||
</div>
|
</div>
|
||||||
<div class="button-gap"></div>
|
<div class="button-gap"></div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
<div class="square-button-white" id="print-document-button" data-tooltip="Print me" data-tooltip-position="top center" {{action 'printDocument'}}>
|
<div class="round-button-mono" id="print-document-button" data-tooltip="Print me" data-tooltip-position="top center" {{action 'printDocument'}}>
|
||||||
<i class="material-icons">print</i>
|
<i class="material-icons color-gray">print</i>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{#if isEditor}}
|
{{#if isEditor}}
|
||||||
<div class="button-gap"></div>
|
<div class="button-gap"></div>
|
||||||
<div class="square-button-white button-red-text" id="delete-document-button" data-tooltip="Delete content" data-tooltip-position="top center">
|
<div class="round-button-mono button-red-text" id="delete-document-button" data-tooltip="Delete content" data-tooltip-position="top center">
|
||||||
<i class="material-icons">delete</i>
|
<i class="material-icons color-gray">delete</i>
|
||||||
</div>
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
|
@ -78,3 +71,4 @@
|
||||||
{{/dropdown-dialog}}
|
{{/dropdown-dialog}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</div>
|
</div>
|
||||||
|
<div class="margin-bottom-20 clearfix" />
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
<div class="document-view">
|
<div class="document-view">
|
||||||
|
<h1>{{document.name}}</h1>
|
||||||
|
|
||||||
{{#if document.template}}
|
{{#if document.template}}
|
||||||
<div class="is-template">TEMPLATE</div>
|
<div class="is-template">TEMPLATE</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
|
@ -1,10 +1,11 @@
|
||||||
<div>
|
{{#if showToolbar}}
|
||||||
|
<div class="pull-right hidden-xs hidden-sm">
|
||||||
{{#if hasSelectedDocuments}}
|
{{#if hasSelectedDocuments}}
|
||||||
<div class="square-button button-blue" id="move-documents-button" data-tooltip="Move documents" data-tooltip-position="top center">
|
<div class="round-button button-blue" id="move-documents-button" data-tooltip="Move documents" data-tooltip-position="top center">
|
||||||
<i class="material-icons">folder</i>
|
<i class="material-icons">folder</i>
|
||||||
</div>
|
</div>
|
||||||
<div class="button-gap"></div>
|
<div class="button-gap"></div>
|
||||||
<div class="square-button button-red" id="delete-documents-button" data-tooltip="Delete documents" data-tooltip-position="top center">
|
<div class="round-button button-red" id="delete-documents-button" data-tooltip="Delete documents" data-tooltip-position="top center">
|
||||||
<i class="material-icons">delete</i>
|
<i class="material-icons">delete</i>
|
||||||
</div>
|
</div>
|
||||||
{{#dropdown-dialog target="delete-documents-button" position="bottom right" button="Delete" color="flat-red" onAction=(action 'deleteDocuments')}}
|
{{#dropdown-dialog target="delete-documents-button" position="bottom right" button="Delete" color="flat-red" onAction=(action 'deleteDocuments')}}
|
||||||
|
@ -29,22 +30,25 @@
|
||||||
{{else}}
|
{{else}}
|
||||||
{{#if isFolderOwner}}
|
{{#if isFolderOwner}}
|
||||||
{{#link-to 'folders.settings' folder.id folder.slug (query-params tab="tabShare")}}
|
{{#link-to 'folders.settings' folder.id folder.slug (query-params tab="tabShare")}}
|
||||||
<div class="square-button-white" id="folder-share-button" data-tooltip="Share space" data-tooltip-position="top center">
|
<div class="round-button-mono" id="folder-share-button" data-tooltip="Share" data-tooltip-position="top center">
|
||||||
<i class="material-icons">share</i>
|
<i class="material-icons color-gray">share</i>
|
||||||
</div>
|
</div>
|
||||||
{{/link-to}}
|
{{/link-to}}
|
||||||
<div class="button-gap"></div>
|
<div class="button-gap"></div>
|
||||||
{{#link-to 'folders.settings' folder.id folder.slug}}
|
{{#link-to 'folders.settings' folder.id folder.slug}}
|
||||||
<div class="square-button-white" id="folder-settings-button" data-tooltip="Space settings" data-tooltip-position="top center">
|
<div class="round-button-mono" id="folder-settings-button" data-tooltip="Settings" data-tooltip-position="top center">
|
||||||
<i class="material-icons">settings</i>
|
<i class="material-icons color-gray">settings</i>
|
||||||
</div>
|
</div>
|
||||||
{{/link-to}}
|
{{/link-to}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{#if folderService.canEditCurrentFolder}}
|
{{#if folderService.canEditCurrentFolder}}
|
||||||
<div class="button-gap"></div>
|
<div class="button-gap"></div>
|
||||||
<div class="regular-button button-green" id="start-document-button" data-tooltip="Add new content" data-tooltip-position="top center">
|
<div class="round-button-mono" id="import-document-button" data-tooltip="Import Word / Markdown" data-tooltip-position="top center">
|
||||||
|
<i class="material-icons color-gray">file_upload</i>
|
||||||
|
</div>
|
||||||
|
<div class="button-gap"></div>
|
||||||
|
<div class="round-button button-green" id="start-document-button" data-tooltip="New..." data-tooltip-position="top center">
|
||||||
<i class="material-icons">add</i>
|
<i class="material-icons">add</i>
|
||||||
<div class="name">Content</div>
|
|
||||||
</div>
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{#if folderService.canEditCurrentFolder}}
|
{{#if folderService.canEditCurrentFolder}}
|
||||||
|
@ -58,3 +62,6 @@
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</div>
|
</div>
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
|
<div class="margin-bottom-20 clearfix" />
|
||||||
|
|
|
@ -1,13 +1,11 @@
|
||||||
<div class="sidebar-menu">
|
<div class="sidebar-menu">
|
||||||
<div class="folders-list">
|
|
||||||
|
|
||||||
{{#if session.isEditor}}
|
{{#if session.isEditor}}
|
||||||
<div class="add-space-action hidden-xs hidden-sm">
|
<div id="add-space-button" class="regular-button button-white" data-tooltip="Share" data-tooltip-position="top center">
|
||||||
<div class="regular-button button-white" id="add-folder-button" data-tooltip="New space" data-tooltip-position="top center">
|
|
||||||
<i class="material-icons">add</i>
|
<i class="material-icons">add</i>
|
||||||
<div class="name">space</div>
|
<div class="name">Space</div>
|
||||||
</div>
|
</div>
|
||||||
{{#dropdown-dialog target="add-folder-button" position="bottom left" button="Add" color="flat-green" onAction=(action 'addFolder') focusOn="new-folder-name"}}
|
{{#dropdown-dialog target="add-space-button" position="bottom left" button="Add" color="flat-green" onAction=(action 'addFolder') focusOn="new-folder-name"}}
|
||||||
<div>
|
<div>
|
||||||
<div class="input-control">
|
<div class="input-control">
|
||||||
<label>New space</label>
|
<label>New space</label>
|
||||||
|
@ -16,6 +14,16 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{{/dropdown-dialog}}
|
{{/dropdown-dialog}}
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
|
<div class="folders-list">
|
||||||
|
<div id="new-document" class="round-button button-green doc-tool" data-tooltip="New space" data-tooltip-position="top center">
|
||||||
|
<i class="material-icons">add</i>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{{#if showScrollTool}}
|
||||||
|
<div {{action 'scrollTop'}} id="scroll-space-tool" class="round-button round-button-mono button-white scroll-space-tool" data-tooltip="Back to top" data-tooltip-position="top center">
|
||||||
|
<i class="material-icons color-gray">vertical_align_top</i>
|
||||||
</div>
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue