From: Wilfried Göesgens Date: Thu, 5 Feb 2009 21:52:13 +0000 (+0000) Subject: * add message count. Thanks for TrilCat pointing out that we've lost it. X-Git-Tag: v7.86~1492 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=06410ef3a6eb6fdfafc9085b2eeadd4a74969c66 * add message count. Thanks for TrilCat pointing out that we've lost it. --- diff --git a/webcit/msg_renderers.c b/webcit/msg_renderers.c index 5688bc181..5112aba61 100644 --- a/webcit/msg_renderers.c +++ b/webcit/msg_renderers.c @@ -420,6 +420,12 @@ void tmplput_MAIL_SUMM_ALLRCPT(StrBuf *Target, WCTemplputParams *TP) } + +void tmplput_SUMM_COUNT(StrBuf *Target, WCTemplputParams *TP) +{ + StrBufAppendPrintf(Target, "%d", GetCount( WC->summ)); +} + HashList *iterate_get_mailsumm_All(StrBuf *Target, WCTemplputParams *TP) { return WC->summ; @@ -1122,6 +1128,7 @@ InitModule_MSGRENDERERS groupchange_sender, CTX_MAILSUM); + RegisterNamespace("SUMM:COUNT", 0, 0, tmplput_SUMM_COUNT, CTX_NONE); /* iterate over all known mails in WC->summ */ RegisterIterator("MAIL:SUMM:MSGS", 0, NULL, iterate_get_mailsumm_All, NULL,NULL, CTX_MAILSUM, CTX_NONE, IT_NOFLAG); diff --git a/webcit/static/t/msg_listselector_bottom.html b/webcit/static/t/msg_listselector_bottom.html index 20c653137..49cbe68fc 100644 --- a/webcit/static/t/msg_listselector_bottom.html +++ b/webcit/static/t/msg_listselector_bottom.html @@ -4,7 +4,7 @@ OnChange="location.href=msgomaticbottom.whichones.options[selectedIndex].value"> - + diff --git a/webcit/static/t/msg_listselector_top.html b/webcit/static/t/msg_listselector_top.html index 3f4709b3c..bf0fd0377 100644 --- a/webcit/static/t/msg_listselector_top.html +++ b/webcit/static/t/msg_listselector_top.html @@ -4,7 +4,7 @@ OnChange="location.href=msgomatictop.whichones.options[selectedIndex].value"> - +