summaryrefslogtreecommitdiff
path: root/skins/larry/templates/messagepreview.html
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2012-01-06 13:40:37 +0000
committerthomascube <thomas@roundcube.net>2012-01-06 13:40:37 +0000
commitf4aaf84b5052bb2686a12e4a41837bef36c5a426 (patch)
tree7117af6d7d33d83c1970bc01640837b9a4663157 /skins/larry/templates/messagepreview.html
parente86a21bd83a0ae6cadfe9c919582951f306d3b64 (diff)
Display short headers in preview mode, with toggle to show all
Diffstat (limited to 'skins/larry/templates/messagepreview.html')
-rw-r--r--skins/larry/templates/messagepreview.html16
1 files changed, 15 insertions, 1 deletions
diff --git a/skins/larry/templates/messagepreview.html b/skins/larry/templates/messagepreview.html
index b7ba414c3..1543acc3f 100644
--- a/skins/larry/templates/messagepreview.html
+++ b/skins/larry/templates/messagepreview.html
@@ -8,7 +8,21 @@
<div id="messagepreviewheader">
<h3 class="subject"><roundcube:object name="messageHeaders" valueOf="subject" /></h3>
-<roundcube:object name="messageHeaders" class="headers-table" addicon="/images/addcontact.png" exclude="subject,replyto" />
+
+<table class="headers-table" id="preview-shortheaders"><tbody><tr>
+<roundcube:if condition="env:mailbox == config:drafts_mbox || env:mailbox == config:sent_mbox">
+ <td class="header-title"><roundcube:label name="to" /></td>
+ <td class="header from"><roundcube:object name="messageHeaders" valueOf="to" addicon="/images/addcontact.png" /></td>
+<roundcube:else />
+ <td class="header-title"><roundcube:label name="from" /></td>
+ <td class="header from"><roundcube:object name="messageHeaders" valueOf="from" addicon="/images/addcontact.png" /></td>
+<roundcube:endif />
+ <td class="header-title"><roundcube:label name="date" /></td>
+ <td class="header from"><roundcube:object name="messageHeaders" valueOf="date" /></td>
+ <td class="header"><a href="#details" id="previewheaderstoggle" class="iconlink add">Details</a>
+</tr></tbody></table>
+
+<roundcube:object name="messageHeaders" id="preview-allheaders" class="headers-table" addicon="/images/addcontact.png" exclude="subject,replyto" />
<!-- record navigation -->
<div id="countcontrols" class="pagenav">