Added collaborators list widget

This commit is contained in:
Aleksander Machniak 2015-11-03 16:28:05 +01:00
parent c01447347c
commit ec39aaaaf4
3 changed files with 24 additions and 0 deletions

View file

@ -921,10 +921,13 @@ class kolab_files_engine
'filepreviewframe' => array($this, 'file_preview_frame'),
));
$placeholder = $this->rc->output->asset_url('program/resources/blank.gif');
// this one is for styling purpose
$this->rc->output->set_env('extwin', true);
$this->rc->output->set_env('file', $file);
$this->rc->output->set_env('file_data', $this->file_data);
$this->rc->output->set_env('photo_placeholder', $placeholder);
$this->rc->output->set_pagetitle(rcube::Q($file));
$this->rc->output->send('kolab_files.' . ($viewer & 4 ? 'docedit' : 'filepreview'));
}

View file

@ -79,6 +79,22 @@
width: 200px;
}
#collaborators {
position: absolute;
right: 0;
top: -6px;
}
#collaborators #members img.photo {
width: 32px;
height: 32px;
overflow: hidden;
background: url(../../../../skins/larry/images/contactpic_32px.png) center center no-repeat #fff;
border-radius: 5px;
border: solid 3px #eee;
margin-left: 5px;
}
#quicksearchbar #filesearchmenulink {
position: absolute;
top: 5px;

View file

@ -29,6 +29,11 @@
<label for="document-title"><roundcube:label name="kolab_files.documenttitle" />&nbsp;<input id="document-title" type="text" value="" /></label>
</div>
<h2 id="aria-label-collaborators" class="voice"><roundcube:label name="kolab_files.arialabelcollaborators" /></h2>
<div id="collaborators" class="toolbar" role="toolbar" aria-labelledby="aria-label-collaborators">
<div id="members"></div>
</div>
<div id="filecontent" class="uibox docedit">
<div class="iframebox">
<roundcube:object name="filepreviewframe" id="fileframe" frameborder="0" title="kolab_files.arialabelfilecontent" />