From 674ce8ff457ea52c4bea848583bbc607de915332 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Wilfried=20G=C3=B6esgens?= Date: Tue, 3 Feb 2009 23:20:36 +0000 Subject: [PATCH] * do 4 **** as the server does instead of 3 * hide subject: if we don't have a subject --- webcit/msg_renderers.c | 6 ++++++ webcit/static/t/view_message.html | 10 +++++----- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/webcit/msg_renderers.c b/webcit/msg_renderers.c index 9a2aa2f3d..5688bc181 100644 --- a/webcit/msg_renderers.c +++ b/webcit/msg_renderers.c @@ -271,6 +271,11 @@ void tmplput_MAIL_SUMM_SUBJECT(StrBuf *Target, WCTemplputParams *TP) message_summary *Msg = (message_summary*) CTX; StrBufAppendTemplate(Target, TP, Msg->subj, 0); } +int Conditional_MAIL_SUMM_SUBJECT(StrBuf *Target, WCTemplputParams *TP) +{ + message_summary *Msg = (message_summary*) CTX; + return StrLength(Msg->subj) > 0; +} void examine_msgn(message_summary *Msg, StrBuf *HdrLine, StrBuf *FoundCharset) @@ -1146,6 +1151,7 @@ InitModule_MSGRENDERERS RegisterConditional(HKEY("COND:MAIL:SUMM:UNREAD"), 0, Conditional_MAIL_SUMM_UNREAD, CTX_MAILSUM); RegisterConditional(HKEY("COND:MAIL:SUMM:H_NODE"), 0, Conditional_MAIL_SUMM_H_NODE, CTX_MAILSUM); RegisterConditional(HKEY("COND:MAIL:SUMM:OTHERNODE"), 0, Conditional_MAIL_SUMM_OTHERNODE, CTX_MAILSUM); + RegisterConditional(HKEY("COND:MAIL:SUMM:SUBJECT"), 0, Conditional_MAIL_SUMM_SUBJECT, CTX_MAILSUM); RegisterConditional(HKEY("COND:MAIL:ANON"), 0, Conditional_ANONYMOUS_MESSAGE, CTX_MAILSUM); RegisterConditional(HKEY("COND:MAIL:TO"), 0, Conditional_MAIL_SUMM_TO, CTX_MAILSUM); RegisterConditional(HKEY("COND:MAIL:SUBJ"), 0, Conditional_MAIL_SUMM_SUBJ, CTX_MAILSUM); diff --git a/webcit/static/t/view_message.html b/webcit/static/t/view_message.html index 33f8f7e8e..01f06bec3 100644 --- a/webcit/static/t/view_message.html +++ b/webcit/static/t/view_message.html @@ -9,7 +9,7 @@ onMouseOut=document.getElementById("msg").style.visibility="hidden ">"" <> "> @ - *** + ****

@@ -26,12 +26,12 @@ onMouseOut=document.getElementById("msg").style.visibility="hidden
- + - - - + + +
-- 2.39.2