plugins/kolab_delegation

Aleksander Machniak machniak at kolabsys.com
Mon Dec 10 09:13:36 CET 2012


 plugins/kolab_delegation/kolab_delegation.php                  |    9 +++++----
 plugins/kolab_delegation/localization/en_US.inc                |    4 ++--
 plugins/kolab_delegation/skins/classic/read.png                |binary
 plugins/kolab_delegation/skins/classic/templates/editform.html |    2 +-
 plugins/kolab_delegation/skins/classic/write.png               |binary
 plugins/kolab_delegation/skins/larry/read.png                  |binary
 plugins/kolab_delegation/skins/larry/templates/editform.html   |    2 +-
 plugins/kolab_delegation/skins/larry/write.png                 |binary
 8 files changed, 9 insertions(+), 8 deletions(-)

New commits:
commit 89de2f226e5a22ab62320bf030acbea2879f3b33
Author: Aleksander Machniak <machniak at kolabsys.com>
Date:   Mon Dec 10 09:13:02 2012 +0100

    Add icons for mass-actions on folders

diff --git a/plugins/kolab_delegation/kolab_delegation.php b/plugins/kolab_delegation/kolab_delegation.php
index 5eb59bc..2667167 100644
--- a/plugins/kolab_delegation/kolab_delegation.php
+++ b/plugins/kolab_delegation/kolab_delegation.php
@@ -53,8 +53,8 @@ class kolab_delegation extends rcube_plugin
             if ($this->rc->action == 'plugin.delegation' || empty($_REQUEST['_framed'])) {
                 $this->add_texts('localization/', array('tabtitle', 'deleteconfirm', 'savingdata', 'yes', 'no'));
                 $this->include_script('kolab_delegation.js');
-                $skin_path = $this->local_skin_path();
-                $this->include_stylesheet("$skin_path/style.css");
+                $this->skin_path = $this->local_skin_path();
+                $this->include_stylesheet($this->skin_path . '/style.css');
             }
         }
     }
@@ -400,8 +400,9 @@ class kolab_delegation extends rcube_plugin
      */
     private function delegate_folders_block($a_folders, $attrib, $rights)
     {
-        $read_ico  = $attrib['readicon'] ? html::img(array('src' => $this->skin_path . $attrib['readicon'], 'title' => $this->gettext('read'))) : '';
-        $write_ico = $attrib['writeicon'] ? html::img(array('src' => $this->skin_path . $attrib['writeicon'], 'title' => $this->gettext('write'))) : '';
+        $path      = 'plugins/kolab_delegation/' . $this->skin_path . '/';
+        $read_ico  = $attrib['readicon'] ? html::img(array('src' =>  $path . $attrib['readicon'], 'title' => $this->gettext('read'))) : '';
+        $write_ico = $attrib['writeicon'] ? html::img(array('src' => $path . $attrib['writeicon'], 'title' => $this->gettext('write'))) : '';
 
         $table = new html_table(array('cellspacing' => 0));
         $table->add_header('read', $read_ico);
diff --git a/plugins/kolab_delegation/localization/en_US.inc b/plugins/kolab_delegation/localization/en_US.inc
index c445f7f..825f016 100644
--- a/plugins/kolab_delegation/localization/en_US.inc
+++ b/plugins/kolab_delegation/localization/en_US.inc
@@ -12,10 +12,10 @@ $labels['task'] = 'Tasks';
 $labels['note'] = 'Notes';
 $labels['yes'] = 'Yes';
 $labels['no'] = 'No';
-
+$labels['read'] = 'Read-only';
+$labels['write'] = 'Write';
 $labels['adddelegate'] = 'Add delegate';
 $labels['deletedelegate'] = 'Delete delegate';
-
 $labels['savingdata'] = 'Saving data...';
 $labels['delegatedeleteconfirm'] = 'Do you really want to delete this delegate?';
 $labels['delegateremoveacl'] = 'remove access rights on folders assigned to this user';
diff --git a/plugins/kolab_delegation/skins/classic/read.png b/plugins/kolab_delegation/skins/classic/read.png
new file mode 100644
index 0000000..cbc3b35
Binary files /dev/null and b/plugins/kolab_delegation/skins/classic/read.png differ
diff --git a/plugins/kolab_delegation/skins/classic/templates/editform.html b/plugins/kolab_delegation/skins/classic/templates/editform.html
index d722e58..ff83731 100644
--- a/plugins/kolab_delegation/skins/classic/templates/editform.html
+++ b/plugins/kolab_delegation/skins/classic/templates/editform.html
@@ -11,7 +11,7 @@
 <div id="prefs-details" class="boxcontent">
 	<form action="#" method="post" id="delegateform">
 		<roundcube:object name="plugin.delegateform" form="delegateform" class="propform" />
-		<roundcube:object name="plugin.delegatefolders" form="delegateform" id="delegatefolders" readicon="" writeicon="" />
+		<roundcube:object name="plugin.delegatefolders" form="delegateform" id="delegatefolders" readicon="read.png" writeicon="write.png" />
 	</form>
 	<div id="formfooter">
 		<div class="footerleft">
diff --git a/plugins/kolab_delegation/skins/classic/write.png b/plugins/kolab_delegation/skins/classic/write.png
new file mode 100644
index 0000000..ad71fa9
Binary files /dev/null and b/plugins/kolab_delegation/skins/classic/write.png differ
diff --git a/plugins/kolab_delegation/skins/larry/read.png b/plugins/kolab_delegation/skins/larry/read.png
new file mode 100644
index 0000000..8182490
Binary files /dev/null and b/plugins/kolab_delegation/skins/larry/read.png differ
diff --git a/plugins/kolab_delegation/skins/larry/templates/editform.html b/plugins/kolab_delegation/skins/larry/templates/editform.html
index 625c31b..8cf4c87 100644
--- a/plugins/kolab_delegation/skins/larry/templates/editform.html
+++ b/plugins/kolab_delegation/skins/larry/templates/editform.html
@@ -11,7 +11,7 @@
 <div id="preferences-details" class="boxcontent">
 	<form action="#" method="post" id="delegateform">
 		<roundcube:object name="plugin.delegateform" form="delegateform" class="propform" />
-		<roundcube:object name="plugin.delegatefolders" form="delegateform" id="delegatefolders" readicon="" writeicon="" />
+		<roundcube:object name="plugin.delegatefolders" form="delegateform" id="delegatefolders" readicon="read.png" writeicon="write.png" />
 	</form>
 </div>
 
diff --git a/plugins/kolab_delegation/skins/larry/write.png b/plugins/kolab_delegation/skins/larry/write.png
new file mode 100644
index 0000000..10cebf2
Binary files /dev/null and b/plugins/kolab_delegation/skins/larry/write.png differ





More information about the commits mailing list