/* Prepare the navbar actions template. */
$a_template = $injector->createInstance('Horde_Template');
$a_template->setOption('gettext', true);
-$a_template->set('readonly', $readonly);
$compose_params = array('identity' => $identity, 'thismailbox' => $mailbox_name, 'uid' => $uid);
if (!$prefs->getValue('compose_popup')) {
$compose_params += array('start' => $msgindex, 'mailbox' => $imp_mbox['mailbox']);
$a_template->set('show_thread', Horde::widget(IMP::generateIMPUrl('thread.php', $imp_mbox['mailbox'], $uid, $mailbox_name)->add(array('start' => $msgindex)), _("View Thread"), 'widget', '', '', _("_View Thread"), true));
}
-if ($registry->hasMethod('mail/blacklistFrom')) {
+if (!$readonly && $registry->hasMethod('mail/blacklistFrom')) {
$a_template->set('blacklist', Horde::widget($self_link->copy()->add('actionID', 'blacklist'), _("Blacklist"), 'widget', '', '', _("_Blacklist"), true));
}
-if ($registry->hasMethod('mail/whitelistFrom')) {
+if (!$readonly && $registry->hasMethod('mail/whitelistFrom')) {
$a_template->set('whitelist', Horde::widget($self_link->copy()->add('actionID', 'whitelist'), _("Whitelist"), 'widget', '', '', _("_Whitelist"), true));
}
<div id="msgheaders">
- <table cellspacing="0">
+ <table>
<loop:headers>
<tr<if:headers.class> class="<tag:headers.class />"</if:headers.class>>
- <td class="item<tag:headers.i /> rightAlign nowrap"><strong><tag:headers.name />:</strong> </td>
- <td class="item<tag:headers.i /> msgheader"><tag:headers.val /></td>
+ <td class="item<tag:headers.i /> rightAlign nowrap">
+ <strong><tag:headers.name />:</strong>
+ </td>
+ <td class="item<tag:headers.i /> msgheader">
+ <tag:headers.val />
+ </td>
</tr>
</loop:headers>
</table>
-<table class="navbaractions" width="100%" cellspacing="0">
+<table class="navbaractions">
<tr>
<td class="mboxcontrol <if:isbottom>topborder<else:isbottom>bottomborder</else:isbottom></if:isbottom>">
<ul class="msgactions">
-<if:readonly><else:readonly>
+<if:delete>
<li><tag:delete /></li>
-</else:readonly></if:readonly>
+</if:delete>
<if:reply>
<li><tag:reply />
<ul>
<li><tag:reply_sender /></li>
- <if:reply_list><li><tag:reply_list /></li></if:reply_list>
- <if:show_reply_all><li><tag:show_reply_all /></li></if:show_reply_all>
+<if:reply_list>
+ <li><tag:reply_list /></li>
+</if:reply_list>
+<if:show_reply_all>
+ <li><tag:show_reply_all /></li>
+</if:show_reply_all>
</ul>
</li>
<li><tag:forward />
</li>
<li><tag:redirect /></li>
</if:reply>
- <if:show_thread><li><tag:show_thread /></li></if:show_thread>
-<if:readonly><else:readonly>
- <if:blacklist><li><tag:blacklist /></li></if:blacklist>
- <if:whitelist><li><tag:whitelist /></li></if:whitelist>
-</else:readonly></if:readonly>
- <if:view_source><li><tag:view_source /></li></if:view_source>
- <if:resume><li><tag:resume /></li></if:resume>
+<if:show_thread>
+ <li><tag:show_thread /></li>
+</if:show_thread>
+<if:blacklist>
+ <li><tag:blacklist /></li>
+</if:blacklist>
+<if:whitelist>
+ <li><tag:whitelist /></li>
+</if:whitelist>
+<if:view_source>
+ <li><tag:view_source /></li>
+</if:view_source>
+<if:resume>
+ <li><tag:resume /></li>
+</if:resume>
<li><tag:save_as /></li>
-<if:readonly><else:readonly>
- <if:spam><li><tag:spam /></li></if:spam>
- <if:notspam><li><tag:notspam /></li></if:notspam>
-</else:readonly></if:readonly>
+<if:spam>
+ <li><tag:spam /></li>
+</if:spam>
+<if:notspam>
+ <li><tag:notspam /></li>
+</if:notspam>
<li<if:atc><else:atc> class="lastnavbar"</else:atc></if:atc>><tag:headers />
<ul>
- <if:common_headers><li><tag:common_headers /></li></if:common_headers>
- <if:all_headers><li><tag:all_headers /></li></if:all_headers>
- <if:list_headers><li><tag:list_headers /></li></if:list_headers>
+<if:common_headers>
+ <li><tag:common_headers /></li>
+</if:common_headers>
+<if:all_headers>
+ <li><tag:all_headers /></li>
+</if:all_headers>
+<if:list_headers>
+ <li><tag:list_headers /></li>
+</if:list_headers>
</ul>
</li>
<if:atc>
<li class="lastnavbar"><tag:atc />
<ul>
- <if:show_parts_all><li><tag:show_parts_all /></li></if:show_parts_all>
- <if:download_all><li><tag:download_all /></li></if:download_all>
- <if:strip_all><li><tag:strip_all /></li></if:strip_all>
+<if:show_parts_all>
+ <li><tag:show_parts_all /></li>
+</if:show_parts_all>
+<if:download_all>
+ <li><tag:download_all /></li>
+</if:download_all>
+<if:strip_all>
+ <li><tag:strip_all /></li>
+</if:strip_all>
</ul>
</li>
</if:atc>
</else:usepop></if:usepop>
</else:readonly></if:readonly>
<div class="rightFloat nowrap">
- <tag:back_to />
+ <tag:back_to />
<if:prev><tag:prev /></if:prev><tag:prev_img /><if:prev></a></if:prev>
<if:next><tag:next /></if:next><tag:next_img /><if:next></a></if:next>
</div>
</tr>
</if:isbottom>
</table>
-<if:isbottom></form></if:isbottom>
+<if:isbottom>
+</form>
+</if:isbottom>
<form method="post" id="messages" name="messages" action="<tag:message_url />">
-<tag:form_input />
-<input type="hidden" id="targetMbox" name="targetMbox" />
-<input type="hidden" id="actionID" name="actionID" />
-<input type="hidden" id="message_token" name="message_token" value="<tag:message_token />" />
-<input type="hidden" name="mailbox" value="<tag:mailbox />" />
-<input type="hidden" name="thismailbox" value="<tag:thismailbox />" />
-<input type="hidden" name="start" value="<tag:start />" />
-<input type="hidden" name="uid" value="<tag:uid />" />
-<input type="hidden" id="newMbox" name="newMbox" />
-<input type="hidden" name="flag" />
-<h1 class="header">
- <tag:label /> <span style="unicode-bidi: embed"><tag:msg_count /></span> <tag:status />
-</h1>
+ <tag:form_input />
+ <input type="hidden" id="targetMbox" name="targetMbox" />
+ <input type="hidden" id="actionID" name="actionID" />
+ <input type="hidden" id="message_token" name="message_token" value="<tag:message_token />" />
+ <input type="hidden" name="mailbox" value="<tag:mailbox />" />
+ <input type="hidden" name="thismailbox" value="<tag:thismailbox />" />
+ <input type="hidden" name="start" value="<tag:start />" />
+ <input type="hidden" name="uid" value="<tag:uid />" />
+ <input type="hidden" id="newMbox" name="newMbox" />
+ <input type="hidden" name="flag" />
+
+ <h1 class="header">
+ <tag:label />
+ <span style="unicode-bidi: embed"><tag:msg_count /></span>
+ <tag:status />
+ </h1>
}
/* Message body styling. */
-#messageBody {
+.messageBody {
padding: 2px;
}
}
/* Navbar action styling. */
+table.navbaractions {
+ border-collapse: collapse;
+ width: 100%;
+}
ul.msgactions, ul.msgactions ul {
list-style: none;
}
padding-left: 15px;
}
+/* Message headers styling. */
+#msgheaders table {
+ border-collapse: collapse;
+}
+
/* Message body styling. */
.messageBody {
border-top: 1px solid #ccc;
width: 100%;
}
.msgheader img {
- vertical-align: middle;
- padding: 1px 1px 1px 2px;
+ padding: 0 1px 0 2px;
+ vertical-align: bottom;
}
/* Contacts styles. */