const:hideFolderTree="1"
>
<div id="compose_fromline">
- From: abc
+ From:
+ <!-- always a popup on Thunderbird -->
+ <select name="totype_00" style="width: 90%;">
+ <option value="to" selected="selected">xxx@yyy.com</option>
+ </select>
</div>
<div id="compose_toselection">
</div>
<!-- separate line -->
- <textarea style="width:100%;" name="content" />
+ <div id="compose_text">
+ <textarea style="width:100%;" name="content" />
+ </div>
- <h4>Mail Compose</h4>
<!-- a rsrc:href="tbird_073_compose.png">screenshot</a -->
<img rsrc:src="tbird_073_compose.png" alt="screenshot" />
-
-</var:component>
\ No newline at end of file
+</var:component>
return nil;
}
+- (NSString *)defaultSortKey {
+ return @"DATE";
+}
- (NSString *)imap4SortKey {
NSString *sort;
sort = [[[self context] request] formValueForKey:@"sort"];
- [self logWithFormat:@"sort by: %@", sort];
-
+
// TODO: reversed sorts
if ([sort length] == 0)
- sort = @"SUBJECT";
+ sort = [self defaultSortKey];
return [sort uppercaseString];
}
<!-- TODO: see AB for sorting -->
<td class="tbtv_headercell" width="60%">
- <a href="view" _sort="subject"><var:string label:value="Subject" /></a>
+ <a href="view" _sort="subject">
+ <var:string label:value="Subject" />
+ <var:if condition="imap4SortKey" const:value="SUBJECT">
+ <img rsrc:src="title_sortdown_12x12.png"
+ class="tbtv_sortcell" />
+ </var:if>
+ </a>
</td>
<td class="tbtv_headercell">
<var:if condition="showToAddress" const:negate="YES">
- <a href="view" _sort="from"><var:string label:value="From" /></a>
+ <a href="view" _sort="from">
+ <var:string label:value="From" />
+ <var:if condition="imap4SortKey" const:value="FROM">
+ <img rsrc:src="title_sortdown_12x12.png"
+ class="tbtv_sortcell" />
+ </var:if>
+ </a>
</var:if>
<var:if condition="showToAddress">
- <a href="view" _sort="to"><var:string label:value="To" /></a>
+ <a href="view" _sort="to">
+ <var:string label:value="To" />
+ <var:if condition="imap4SortKey" const:value="TO">
+ <img rsrc:src="title_sortdown_12x12.png"
+ class="tbtv_sortcell" />
+ </var:if>
+ </a>
</var:if>
</td>
<td class="tbtv_headercell" width="17">
- <!-- TODO: fix me, use the proper Thunderbird Icon -->
- <img rsrc:src="icon_read.gif" />
+ <img rsrc:src="title_read_14x14.png" width="14" height="14" />
</td>
<td class="tbtv_headercell">
- <a href="view" _sort="date"><var:string label:value="Date" /></a>
+ <a href="view" _sort="date">
+ <var:string label:value="Date" />
+ <var:if condition="imap4SortKey" const:value="DATE">
+ <img rsrc:src="title_sortdown_12x12.png"
+ class="tbtv_sortcell"/>
+ </var:if>
+ </a>
</td>
</tr>
<tr class="tableview">