feature: add drive on project

This commit is contained in:
Jean-Baptiste Pasquier 2019-06-05 11:45:41 +02:00
parent 89db25fa85
commit 6c2e57383b
No known key found for this signature in database
GPG Key ID: F2702E6D22ED4D62
5 changed files with 26 additions and 0 deletions

View File

@ -0,0 +1,11 @@
sib-widget(name='hd-drive')
template
iframe.drive.chat-view(
src='https://drive.google.com/embeddedfolderview?id=${value}'
)
.content-box.full-width.chat-view
sib-display(
bind-resources=""
data-fields="driveID"
widget-driveID='hd-drive'
)

View File

@ -7,6 +7,8 @@
include page-project-edit.pug include page-project-edit.pug
#project-create #project-create
include page-project-create.pug include page-project-create.pug
#project-drive
include page-project-drive.pug
nav.jsRightMenu(role='navigation') nav.jsRightMenu(role='navigation')
sib-router(default-route='project-chat') sib-router(default-route='project-chat')
ul ul
@ -18,6 +20,9 @@ nav.jsRightMenu(role='navigation')
sib-route(name='project-profile', use-id) sib-route(name='project-profile', use-id)
li li
a Information a Information
sib-route(name='project-drive', use-id)
li
a Drive
sib-route(name='project-edit', use-id) sib-route(name='project-edit', use-id)
//- li //- li
//- a Edit //- a Edit

View File

@ -122,6 +122,11 @@ a {
} }
} }
.drive {
width: 100%;
border: 0;
}
.backlink { .backlink {
font-size: 1.5rem; font-size: 1.5rem;
margin: 2rem 0 0 2rem; margin: 2rem 0 0 2rem;

View File

@ -5,6 +5,7 @@
padding: 0; padding: 0;
height: calc(100vh - 84px); height: calc(100vh - 84px);
position: relative; position: relative;
overflow: hidden;
> sib-chat { > sib-chat {
position: absolute; position: absolute;

View File

@ -92,6 +92,10 @@
&[name$='profile']>li { &[name$='profile']>li {
@include ci('information'); @include ci('information');
} }
&[name$='drive']>li {
@include ci('file');
}
} }
} }
} }