From 7f9ea15463a7d14b4316e4859e29d53bd727fb32 Mon Sep 17 00:00:00 2001 From: thomascube Date: Mon, 11 Feb 2008 22:45:26 +0000 Subject: [PATCH] Add UI elements to mark the selected messages read/unread --- CHANGELOG | 4 + program/include/rcmail_template.inc | 5 +- program/localization/de_CH/labels.inc | 3 + program/localization/de_DE/labels.inc | 3 + program/localization/en_US/labels.inc | 3 + skins/default/images/buttons/markread_act.png | Bin 0 -> 1772 bytes skins/default/mail.css | 47 +++++++++ skins/default/templates/mail.html | 97 +++++++++++++----- 8 files changed, 136 insertions(+), 26 deletions(-) create mode 100644 skins/default/images/buttons/markread_act.png diff --git a/CHANGELOG b/CHANGELOG index 7f04880b4..def887dd3 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,6 +1,10 @@ CHANGELOG RoundCube Webmail --------------------------- +2008/02/11 (thomasb) +---------- +- Add function to mark the selected messages as read/unread (#1457360) + 2008/02/07 (thomasb) ---------- - Remember decision to display images for a certain message during session (#1484754) diff --git a/program/include/rcmail_template.inc b/program/include/rcmail_template.inc index d6eb35ca5..301b3f20d 100644 --- a/program/include/rcmail_template.inc +++ b/program/include/rcmail_template.inc @@ -453,8 +453,7 @@ class rcmail_template extends rcube_html_page { // return a button case 'button': - if ($attrib['command']) - return $this->button($attrib); + return $this->button($attrib); break; // show a label @@ -582,7 +581,7 @@ class rcmail_template extends rcube_html_page $skin_path = $this->config['skin_path']; - if (!($attrib['command'] || $attrib['name'])) + if (!($attrib['command'] || $attrib['name'] || $attrib['onclick'])) return ''; // try to find out the button type diff --git a/program/localization/de_CH/labels.inc b/program/localization/de_CH/labels.inc index a626d32c0..3d2c81500 100644 --- a/program/localization/de_CH/labels.inc +++ b/program/localization/de_CH/labels.inc @@ -110,6 +110,9 @@ $labels['lastmessage'] = 'Die letzte Nachricht anzeigen'; $labels['lastmessages'] = 'Die letzten Nachrichten anzeigen'; $labels['backtolist'] = 'Zurück zur Liste'; $labels['viewsource'] = 'Quelltext anzeigen'; +$labels['markmessages'] = 'Nachrichten markieren'; +$labels['markread'] = 'Als gelesen'; +$labels['markunread'] = 'Als ungelesen'; $labels['select'] = 'Auswählen'; $labels['all'] = 'Alle'; diff --git a/program/localization/de_DE/labels.inc b/program/localization/de_DE/labels.inc index e2b13674f..409c4af8d 100644 --- a/program/localization/de_DE/labels.inc +++ b/program/localization/de_DE/labels.inc @@ -87,6 +87,9 @@ $labels['lastmessage'] = 'Die letzte Nachricht anzeigen'; $labels['lastmessages'] = 'Die letzten Nachrichten anzeigen'; $labels['backtolist'] = 'Zurück zur Liste'; $labels['viewsource'] = 'Quelltext anzeigen'; +$labels['markmessages'] = 'Nachrichten markieren'; +$labels['markread'] = 'Als gelesen'; +$labels['markunread'] = 'Als ungelesen'; $labels['select'] = 'Auswählen'; $labels['all'] = 'Alle'; $labels['none'] = 'Keine'; diff --git a/program/localization/en_US/labels.inc b/program/localization/en_US/labels.inc index 769045fbb..533e40f99 100644 --- a/program/localization/en_US/labels.inc +++ b/program/localization/en_US/labels.inc @@ -109,6 +109,9 @@ $labels['lastmessage'] = 'Show the last message'; $labels['lastmessages'] = 'Show last set of messages'; $labels['backtolist'] = 'Back to message list'; $labels['viewsource'] = 'Show source'; +$labels['markmessages'] = 'Mark messages'; +$labels['markread'] = 'As read'; +$labels['markunread'] = 'As unread'; $labels['select'] = 'Select'; $labels['all'] = 'All'; diff --git a/skins/default/images/buttons/markread_act.png b/skins/default/images/buttons/markread_act.png new file mode 100644 index 0000000000000000000000000000000000000000..32c051140f25ace4d16957b0307458cd58fb0180 GIT binary patch literal 1772 zcmV z@{lD6m)8aEll!~BzQ1#S_wK?)68eL)eShct&hK}=kI(mU&fx?>z<4$p#<`8V0t(k4 z=jT&`k47{2EB6E($b)jZe9)A|V#ez9bnb~X5Mw~3uMd4A3~g4s$vwW%aM(Q_;H|<) z?O^t|f{X8ekz%Mq`c4Bl83#G(f3$8hQX{uRt@OjO>W}fX|BLiZh12);VB4(Y#J~Z$ zVlayUKlRvL;A#V~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