From a549a9222a9368a2a0aa918232f25eaf7fcdb75f Mon Sep 17 00:00:00 2001
From: thomascube <thomas@roundcube.net>
Date: Thu, 17 May 2007 13:03:05 -0400
Subject: [PATCH] Hide address groups if no LDAP servers configured + some skin cleanup

---
 skins/default/templates/addressbook.html |   10 ++++++++++
 skins/default/templates/compose.html     |    2 +-
 skins/default/addresses.css              |    4 ++--
 3 files changed, 13 insertions(+), 3 deletions(-)

diff --git a/skins/default/addresses.css b/skins/default/addresses.css
index 363a634..5193f1c 100644
--- a/skins/default/addresses.css
+++ b/skins/default/addresses.css
@@ -61,7 +61,7 @@
   padding: 0;
 }
 
-#directorylist ul
+#directorylist ul li
 {
   font-size: 11px;
   border-bottom: 1px solid #EBEBEB;
@@ -119,7 +119,7 @@
   border: 1px solid #999999;
   overflow: hidden;
   /* css hack for IE */
-  width: expression((parseInt(document.documentElement.clientWidth)-70-document.getElementById('addresslist').offsetWidth)+'px');
+  width: expression((parseInt(document.documentElement.clientWidth)-45-document.getElementById('addresslist').offsetLeft-document.getElementById('addresslist').offsetWidth)+'px');
   height: expression((parseInt(document.documentElement.clientHeight)-135)+'px');
 }
 
diff --git a/skins/default/templates/addressbook.html b/skins/default/templates/addressbook.html
index c70b00c..a97f584 100644
--- a/skins/default/templates/addressbook.html
+++ b/skins/default/templates/addressbook.html
@@ -23,11 +23,21 @@
 <roundcube:object name="searchform" type="search" results="5" id="quicksearchbox" /><roundcube:button command="reset-search" id="searchreset" image="/images/icons/reset.gif" title="resetsearch" />
 </div>
 
+<roundcube:if condition="config:ldap_public" />
 <div id="directorylist">
 <div id="groups-title"><roundcube:label name="groups" /></div>
 <roundcube:object name="directorylist" id="directories-list" />
 </div>
 
+<roundcube:else />
+<style type="text/css">
+#addresslist { left:20px; width:440px }
+#contacts-box { left:475px }
+#abookcountbar { left:20px }
+</style>
+
+<roundcube:endif />
+
 <div id="addresslist">
 <roundcube:object name="addresslist" id="contacts-table" class="records-table" cellspacing="0" summary="Contacts list" />
 </div>
diff --git a/skins/default/templates/compose.html b/skins/default/templates/compose.html
index 63d5b2c..8fbb298 100644
--- a/skins/default/templates/compose.html
+++ b/skins/default/templates/compose.html
@@ -94,7 +94,7 @@
 
 </tr><tr>
 
-<td style="width:100%; height:98%; vertical-align:top;">
+<td style="width:100%; height:90%; vertical-align:top;">
 <roundcube:object name="composeBody" id="compose-body" form="form" cols="80" rows="20" wrap="virtual" tabindex="7" />
 
 <table border="0" cellspacing="0" width="100%" summary=""><tbody>

--
Gitblit v1.9.1