summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2012-03-13 11:33:28 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2012-03-13 11:33:28 +0000
commitcadd4ffa034ebe569ff7290393171f0d3c1f6116 (patch)
treeb9369e705010cef99a33b0d5dc0ab069237ae05f
parentbe8b5c4c9d6c10aa5073c2296b625965fbffe1a7 (diff)
- Larry skin for ACL plugin
git-svn-id: https://svn.roundcube.net/trunk@6002 208e9e7b-5314-0410-a742-e7e81cd9613c
-rw-r--r--plugins/acl/acl.php5
-rw-r--r--plugins/acl/package.xml8
-rw-r--r--plugins/acl/skins/larry/acl.css113
-rw-r--r--plugins/acl/skins/larry/images/enabled.pngbin0 -> 674 bytes
-rw-r--r--plugins/acl/skins/larry/images/partial.pngbin0 -> 389 bytes
-rw-r--r--plugins/acl/skins/larry/templates/table.html34
6 files changed, 156 insertions, 4 deletions
diff --git a/plugins/acl/acl.php b/plugins/acl/acl.php
index dcc249421..ab981ab89 100644
--- a/plugins/acl/acl.php
+++ b/plugins/acl/acl.php
@@ -7,7 +7,7 @@
* @author Aleksander Machniak <alec@alec.pl>
*
*
- * Copyright (C) 2011, Kolab Systems AG
+ * Copyright (C) 2011-2012, Kolab Systems AG
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2
@@ -388,7 +388,8 @@ class acl extends rcube_plugin
// Create table header
$table->add_header('user', $this->gettext('identifier'));
foreach (array_keys($items) as $key) {
- $table->add_header('acl'.$key, $this->gettext('shortacl'.$key));
+ $label = $this->gettext('shortacl'.$key);
+ $table->add_header(array('class' => 'acl'.$key, 'title' => $label), $label);
}
$i = 1;
diff --git a/plugins/acl/package.xml b/plugins/acl/package.xml
index 6d533965f..7ea0f3297 100644
--- a/plugins/acl/package.xml
+++ b/plugins/acl/package.xml
@@ -13,9 +13,9 @@
<email>alec@alec.pl</email>
<active>yes</active>
</lead>
- <date>2012-01-10</date>
+ <date>2012-03-13</date>
<version>
- <release>0.7</release>
+ <release>0.8</release>
<api>0.7</api>
</version>
<stability>
@@ -42,6 +42,10 @@
<file name="skins/default/images/enabled.png" role="data"></file>
<file name="skins/default/images/partial.png" role="data"></file>
<file name="skins/default/templates/table.html" role="data"></file>
+ <file name="skins/larry/acl.css" role="data"></file>
+ <file name="skins/larry/images/enabled.png" role="data"></file>
+ <file name="skins/larry/images/partial.png" role="data"></file>
+ <file name="skins/larry/templates/table.html" role="data"></file>
</dir>
<!-- / -->
</contents>
diff --git a/plugins/acl/skins/larry/acl.css b/plugins/acl/skins/larry/acl.css
new file mode 100644
index 000000000..589d688f6
--- /dev/null
+++ b/plugins/acl/skins/larry/acl.css
@@ -0,0 +1,113 @@
+#aclcontainer
+{
+ overflow-x: auto;
+ border: 1px solid #CCDDE4;
+ background-color: #D9ECF4;
+ height: 272px;
+ box-shadow: none;
+}
+
+#acllist-content
+{
+ position: relative;
+ height: 230px;
+ background-color: white;
+}
+
+#acllist-footer
+{
+ position: relative;
+}
+
+#acltable
+{
+ width: 100%;
+ border-collapse: collapse;
+ border: none;
+}
+
+#acltable td
+{
+ white-space: nowrap;
+ border: none;
+ text-align: center;
+}
+
+#acltable thead tr td
+{
+ border-left: #BBD3DA dotted 1px;
+ font-size: 11px;
+ font-weight: bold;
+}
+
+#acltable tbody td
+{
+ border-bottom: #DDDDDD 1px solid;
+ text-align: center;
+ padding: 2px;
+ cursor: default;
+}
+
+#acltable thead td.user
+{
+ border-left: none;
+}
+
+#acltable tbody td.user
+{
+ text-align: left;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ -o-text-overflow: ellipsis;
+ border-left: none;
+ width: 50px;
+}
+
+#acltable tbody td.partial
+{
+ background-image: url(images/partial.png);
+ background-position: center;
+ background-repeat: no-repeat;
+}
+
+#acltable tbody td.enabled
+{
+ background-image: url(images/enabled.png);
+ background-position: center;
+ background-repeat: no-repeat;
+}
+
+#acltable tbody tr.selected td.partial
+{
+ background-color: #019bc6;
+ background-image: url(images/partial.png), -moz-linear-gradient(top, #019bc6 0%, #017cb4 100%);
+ background-image: url(images/partial.png), -webkit-gradient(linear, left top, left bottom, color-stop(0%,#019bc6), color-stop(100%,#017cb4));
+ background-image: url(images/partial.png), -o-linear-gradient(top, #019bc6 0%, #017cb4 100%);
+ background-image: url(images/partial.png), -ms-linear-gradient(top, #019bc6 0%, #017cb4 100%);
+ background-image: url(images/partial.png), linear-gradient(top, #019bc6 0%, #017cb4 100%);
+}
+
+#acltable tbody tr.selected td.enabled
+{
+ background-color: #019bc6;
+ background-image: url(images/enabled.png), -moz-linear-gradient(top, #019bc6 0%, #017cb4 100%);
+ background-image: url(images/enabled.png), -webkit-gradient(linear, left top, left bottom, color-stop(0%,#019bc6), color-stop(100%,#017cb4));
+ background-image: url(images/enabled.png), -o-linear-gradient(top, #019bc6 0%, #017cb4 100%);
+ background-image: url(images/enabled.png), -ms-linear-gradient(top, #019bc6 0%, #017cb4 100%);
+ background-image: url(images/enabled.png), linear-gradient(top, #019bc6 0%, #017cb4 100%);
+}
+
+#aclform
+{
+ top: 80px;
+ width: 480px;
+ padding: 10px;
+ background-color: white;
+}
+
+#aclform div
+{
+ padding: 0;
+ text-align: center;
+ clear: both;
+}
diff --git a/plugins/acl/skins/larry/images/enabled.png b/plugins/acl/skins/larry/images/enabled.png
new file mode 100644
index 000000000..98215f68c
--- /dev/null
+++ b/plugins/acl/skins/larry/images/enabled.png
Binary files differ
diff --git a/plugins/acl/skins/larry/images/partial.png b/plugins/acl/skins/larry/images/partial.png
new file mode 100644
index 000000000..12023f057
--- /dev/null
+++ b/plugins/acl/skins/larry/images/partial.png
Binary files differ
diff --git a/plugins/acl/skins/larry/templates/table.html b/plugins/acl/skins/larry/templates/table.html
new file mode 100644
index 000000000..c8dff81b1
--- /dev/null
+++ b/plugins/acl/skins/larry/templates/table.html
@@ -0,0 +1,34 @@
+<div id="aclcontainer" class="uibox listbox">
+<div id="acllist-content" class="scroller withfooter">
+ <roundcube:object name="acltable" id="acltable" class="records-table" />
+</div>
+<div id="acllist-footer" class="boxfooter">
+ <roundcube:button command="acl-create" id="aclcreatelink" type="link" title="acl.newuser" class="listbutton add disabled" classAct="listbutton add" innerClass="inner" content="+" /><roundcube:button name="aclmenulink" id="aclmenulink" type="link" title="acl.actions" class="listbutton groupactions"onclick="UI.show_popup('aclmenu');return false" innerClass="inner" content="&#9881;" />
+ <roundcube:if condition="!in_array('acl_advanced_mode', (array)config:dont_override)" />
+ <span class="countdisplay" style="display: inline">
+ <label for="acl-switch"><roundcube:label name="acl.advanced" /></label>
+ <input type="checkbox" id="acl-switch" onclick="rcmail.command('acl-mode-switch')"<roundcube:exp expression="config:acl_advanced_mode == true ? ' checked=checked' : ''" /> />
+ </span>
+ <roundcube:endif />
+</div>
+</div>
+
+<div id="aclmenu" class="popupmenu">
+ <ul class="toolbarmenu">
+ <li><roundcube:button command="acl-edit" label="edit" classAct="active" /></li>
+ <li><roundcube:button command="acl-delete" label="delete" classAct="active" /></li>
+ </ul>
+</div>
+
+<div id="aclform" class="popupmenu propform">
+ <fieldset class="thinbordered"><legend><roundcube:label name="acl.identifier" /></legend>
+ <roundcube:object name="acluser" id="acluser" size="35" />
+ </fieldset>
+ <fieldset class="thinbordered"><legend><roundcube:label name="acl.myrights" /></legend>
+ <roundcube:object name="aclrights" />
+ </fieldset>
+ <div class="formbuttons">
+ <roundcube:button command="acl-cancel" type="input" class="button" label="cancel" />
+ <roundcube:button command="acl-save" type="input" class="button mainaction" label="save" />
+ </div>
+</div>