From ec39aaaaf41287444bb97c91f3457a1b64f73a27 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Tue, 3 Nov 2015 16:28:05 +0100 Subject: [PATCH] Added collaborators list widget --- plugins/kolab_files/lib/kolab_files_engine.php | 3 +++ plugins/kolab_files/skins/larry/style.css | 16 ++++++++++++++++ .../skins/larry/templates/docedit.html | 5 +++++ 3 files changed, 24 insertions(+) diff --git a/plugins/kolab_files/lib/kolab_files_engine.php b/plugins/kolab_files/lib/kolab_files_engine.php index e399f139..20ddae80 100644 --- a/plugins/kolab_files/lib/kolab_files_engine.php +++ b/plugins/kolab_files/lib/kolab_files_engine.php @@ -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')); } diff --git a/plugins/kolab_files/skins/larry/style.css b/plugins/kolab_files/skins/larry/style.css index eb814b1f..1bbbf3f5 100644 --- a/plugins/kolab_files/skins/larry/style.css +++ b/plugins/kolab_files/skins/larry/style.css @@ -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; diff --git a/plugins/kolab_files/skins/larry/templates/docedit.html b/plugins/kolab_files/skins/larry/templates/docedit.html index c0d9c3c5..fdba1c96 100644 --- a/plugins/kolab_files/skins/larry/templates/docedit.html +++ b/plugins/kolab_files/skins/larry/templates/docedit.html @@ -29,6 +29,11 @@ +

+ +