From: Michael M Slusarz Date: Fri, 23 Apr 2010 18:12:59 +0000 (-0600) Subject: Clean up message template/output X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=e757952b380548678ba622fe18949030296b3c83;p=horde.git Clean up message template/output --- diff --git a/imp/message.php b/imp/message.php index 279f84c87..52d635393 100644 --- a/imp/message.php +++ b/imp/message.php @@ -458,7 +458,6 @@ if (Horde_Util::nonInputVar('next_url')) { /* 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']); @@ -501,11 +500,11 @@ if (IMP::threadSortAvailable($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)); } diff --git a/imp/templates/imp/message/message.html b/imp/templates/imp/message/message.html index 9ee0597e1..e3f5cd689 100644 --- a/imp/templates/imp/message/message.html +++ b/imp/templates/imp/message/message.html @@ -1,9 +1,13 @@
- +
class=""> - - + +
:  + : + + +
diff --git a/imp/templates/imp/message/navbar_actions.html b/imp/templates/imp/message/navbar_actions.html index 95cf5b3d0..c1f888a98 100644 --- a/imp/templates/imp/message/navbar_actions.html +++ b/imp/templates/imp/message/navbar_actions.html @@ -1,16 +1,20 @@ - + - + + + diff --git a/imp/templates/imp/message/navbar_top.html b/imp/templates/imp/message/navbar_top.html index c8f66febf..746534acb 100644 --- a/imp/templates/imp/message/navbar_top.html +++ b/imp/templates/imp/message/navbar_top.html @@ -1,14 +1,17 @@
- - - - - - - - - - -

- -

+ + + + + + + + + + + +

+ + + +

diff --git a/imp/themes/mozilla/screen.css b/imp/themes/mozilla/screen.css index f0bc114db..8b3e1ec6f 100644 --- a/imp/themes/mozilla/screen.css +++ b/imp/themes/mozilla/screen.css @@ -9,6 +9,6 @@ } /* Message body styling. */ -#messageBody { +.messageBody { padding: 2px; } diff --git a/imp/themes/screen.css b/imp/themes/screen.css index 73f48db4b..1760a9f66 100644 --- a/imp/themes/screen.css +++ b/imp/themes/screen.css @@ -99,6 +99,10 @@ table.mboxactions { } /* Navbar action styling. */ +table.navbaractions { + border-collapse: collapse; + width: 100%; +} ul.msgactions, ul.msgactions ul { list-style: none; } @@ -175,6 +179,11 @@ div.msgActions, #fmanager div.folderActions { padding-left: 15px; } +/* Message headers styling. */ +#msgheaders table { + border-collapse: collapse; +} + /* Message body styling. */ .messageBody { border-top: 1px solid #ccc; @@ -419,8 +428,8 @@ td.msgheader { width: 100%; } .msgheader img { - vertical-align: middle; - padding: 1px 1px 1px 2px; + padding: 0 1px 0 2px; + vertical-align: bottom; } /* Contacts styles. */