See ChangeLog
Monotone-Parent: b07d31699d6b961e69129af2d768322df3b7fee9 Monotone-Revision: dbc120865f7cb48891f7b017124443cc19de5f5c Monotone-Author: flachapelle@inverse.ca Monotone-Date: 2010-01-22T20:05:40 Monotone-Branch: ca.inverse.sogomaint-2.0.2
parent
bc33b9308a
commit
4dbafd38dc
|
@ -1,3 +1,8 @@
|
|||
2010-01-22 Francis Lachapelle <flachapelle@inverse.ca>
|
||||
|
||||
* UI/Contacts/UIxListView.m (-itemHasEmail): new method that
|
||||
returns YES if the current list item has an email address.
|
||||
|
||||
2010-01-22 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
||||
|
||||
* Tools/SOGoToolRestore.m (+initialize): we need to invoke
|
||||
|
|
|
@ -61,6 +61,11 @@
|
|||
return [list cardReferences];
|
||||
}
|
||||
|
||||
- (BOOL) itemHasEmail
|
||||
{
|
||||
return [[item email] length] > 0;
|
||||
}
|
||||
|
||||
- (NSString *) itemHref
|
||||
{
|
||||
return [NSString stringWithFormat: @"mailto:%@",
|
||||
|
|
|
@ -20,8 +20,8 @@
|
|||
<ul class="listComponents">
|
||||
<var:foreach list="components" item="item">
|
||||
<li><var:string var:value="itemName"/>
|
||||
<a var:href="itemHref" var:onclick="itemOnclick">
|
||||
<<var:string var:value="itemEmail"/>></a>
|
||||
<var:if condition="itemHasEmail"><a var:href="itemHref" var:onclick="itemOnclick">
|
||||
<<var:string var:value="itemEmail"/>></a></var:if>
|
||||
</li>
|
||||
</var:foreach>
|
||||
</ul>
|
||||
|
|
Loading…
Reference in New Issue