From: Michael M Slusarz Date: Fri, 27 Mar 2009 17:20:31 +0000 (-0600) Subject: Provide visual indication the mailbox is locked. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=86f993a4a3459481fb4fc58cc50ad587beb640d5;p=horde.git Provide visual indication the mailbox is locked. --- diff --git a/imp/mailbox.php b/imp/mailbox.php index 74e72337a..cdbc30836 100644 --- a/imp/mailbox.php +++ b/imp/mailbox.php @@ -396,6 +396,7 @@ if (!empty($refresh_ak)) { if ($unread) { $pagetitle = $title .= ' (' . $unread . ')'; } + if ($vfolder || $search_mbox) { $query_text = htmlspecialchars(wordwrap($imp_search->searchQueryText($imp_search->searchMboxID()))); if ($vfolder) { @@ -448,6 +449,9 @@ IMP::quota(); $hdr_template = new IMP_Template(); $hdr_template->set('title', $title); $hdr_template->set('pagetitle', $pagetitle); +if ($readonly) { + $hdr_template->set('readonly', Horde::img('locked.png', _("Read-Only"), '', $graphicsdir)); +} $hdr_template->set('refresh', Horde::link($refresh_url, $refresh_title, '', '', '', '', $refresh_ak) . Horde::img('reload.png', _("Reload"), '', $graphicsdir) . ''); if (isset($filter_url)) { $hdr_template->set('filter', Horde::link($filter_url, sprintf(_("Apply Filters to %s"), $rawtitle)) . Horde::img('filters.png', _("Apply Filters")) . ''); diff --git a/imp/templates/mailbox/header.html b/imp/templates/mailbox/header.html index c6435fd82..8ec71c83b 100644 --- a/imp/templates/mailbox/header.html +++ b/imp/templates/mailbox/header.html @@ -1,6 +1,7 @@
style="width:40%" class="leftFloat"> + diff --git a/imp/templates/mailbox/mailbox-mimp.inc b/imp/templates/mailbox/mailbox-mimp.inc index 242eed862..50d9efdc3 100644 --- a/imp/templates/mailbox/mailbox-mimp.inc +++ b/imp/templates/mailbox/mailbox-mimp.inc @@ -6,6 +6,11 @@ if (!empty($msgcount)) { if ($pageOb['pagecount'] > 1) { $title .= ' - ' . $pageOb['page'] . ' ' . _("of") . ' ' . $pageOb['pagecount']; } + +if ($readonly) { + $title .= ' [' . _("Read-Only") . ']'; +} + $c = &$mimp_render->add(new Horde_Mobile_card('m', $title)); $c->softkey('#o', _("Menu"));