From d17c2ed024940099bc8588f11ad45a780330b992 Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Thu, 24 Mar 2011 15:27:53 +0000 Subject: [PATCH] Monotone-Parent: ee0810b737d9d978b856ca04e9102d7985d6bf82 Monotone-Revision: 4da10cc5d7b04371c2d5f407c3a25e5ae2bce8df Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2011-03-24T15:27:53 Monotone-Branch: ca.inverse.sogo --- ChangeLog | 6 ++++ UI/Contacts/UIxContactsListView.m | 5 ++++ .../ContactsUI/UIxContactsListView.wox | 2 +- UI/WebServerResources/ContactsUI.css | 28 ++++++++++-------- UI/WebServerResources/ablist.png | Bin 0 -> 540 bytes 5 files changed, 27 insertions(+), 14 deletions(-) create mode 100644 UI/WebServerResources/ablist.png diff --git a/ChangeLog b/ChangeLog index 4375c84ca..ecc5c241f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2011-03-24 Wolfgang Sourdeau + + * UI/Contacts/UIxContactsListView.m (-currentContactClasses): new + method that returns the classes associated to the current contact. + For now, only the c_component. + 2011-03-24 Francis Lachapelle * UI/MailerUI/UIxMailListActions.m (-imap4SortOrdering): verify diff --git a/UI/Contacts/UIxContactsListView.m b/UI/Contacts/UIxContactsListView.m index 34c3dfd75..86cda3a43 100644 --- a/UI/Contacts/UIxContactsListView.m +++ b/UI/Contacts/UIxContactsListView.m @@ -121,6 +121,11 @@ return contactInfos; } +- (NSString *) currentContactClasses +{ + return [[currentContact objectForKey: @"c_component"] lowercaseString]; +} + - (id ) contactSearchAction { id result; diff --git a/UI/Templates/ContactsUI/UIxContactsListView.wox b/UI/Templates/ContactsUI/UIxContactsListView.wox index 450b31bd7..427917de5 100644 --- a/UI/Templates/ContactsUI/UIxContactsListView.wox +++ b/UI/Templates/ContactsUI/UIxContactsListView.wox @@ -26,7 +26,7 @@ - diff --git a/UI/WebServerResources/ContactsUI.css b/UI/WebServerResources/ContactsUI.css index 246f72967..9dcdd6e33 100644 --- a/UI/WebServerResources/ContactsUI.css +++ b/UI/WebServerResources/ContactsUI.css @@ -199,12 +199,6 @@ TABLE#contactsList -khtml-user-select: none; width: 100%; } -TABLE#contactsList TBODY TD.displayName -{ background-repeat: no-repeat; - background-image: url('abcard.png'); - background-position: 4px 1px; - padding-left: 24px; } - TABLE#contactsList TD, TABLE#contactsList TH { overflow: hidden; @@ -215,18 +209,26 @@ TABLE#contactsList TH TABLE#contactsList TH { white-space: pre; } -TABLE#contactsList TD IMG -{ - vertical-align: middle; - margin-left: 1em; - margin-right: .2em; -} - TABLE#contactsList TR._deleted TD { text-decoration: line-through; } +TABLE#contactsList TD.displayName +{ background-repeat: no-repeat; + background-position: 4px 1px; + padding-left: 24px; } + +TABLE#contactsList TR.vcard TD.displayName +{ + background-image: url('abcard.png'); +} + +TABLE#contactsList TR.vlist TD.displayName +{ + background-image: url('ablist.png'); +} + DIV#contactView { position: absolute; diff --git a/UI/WebServerResources/ablist.png b/UI/WebServerResources/ablist.png new file mode 100644 index 0000000000000000000000000000000000000000..45d81a4c8cf59ce567698e9930f0ceb9d1d89de6 GIT binary patch literal 540 zcmV+%0^|LOP)NKA5a@4NHvdFR}j2mJR#{EN-Kf+Ga)pH*~l3e zPt;E!q=>C74OmjTYaN8C*Wt^#!g@Lv3lMO9QhkF{EaIh7L0^9yutLp7;X-ZI3J_GF zy5Bia`~1Z5*}0M_@u~{(!4d49MR(=a`o zLQ8A(N8c@!fDm`+RLiI`;Hms(pb1LP?`S7cr0j$_)qEKht2I4&E;qLKrI``qWtTv` z=;)54QoTTHTNL58E>u6Dyk0{36lmX!OTM