From: Art Cancro Date: Wed, 30 Dec 2009 18:00:56 +0000 (+0000) Subject: * Cleaned up the logic at the end of the bbsview display. Still not sure what we... X-Git-Tag: v7.86~548 X-Git-Url: https://code.citadel.org/?a=commitdiff_plain;h=130db62c1df616310ec975d1e13a8d6e72919a6c;p=citadel.git * Cleaned up the logic at the end of the bbsview display. Still not sure what we should do here. Maybe an auto-update? --- diff --git a/webcit/bbsview_renderer.c b/webcit/bbsview_renderer.c index 115cd92c5..b8daa112b 100644 --- a/webcit/bbsview_renderer.c +++ b/webcit/bbsview_renderer.c @@ -468,7 +468,8 @@ int bbsview_RenderView_or_Tail(SharedMessageStatus *Stat, } wc_printf("
", morediv); - if (Stat->nummsgs > 0) { + /* if (Stat->nummsgs > 0) { */ + if (Stat->nummsgs >= Stat->maxmsgs) { wc_printf("", morediv, BBS->msgs[BBS->num_msgs-1], @@ -483,10 +484,23 @@ int bbsview_RenderView_or_Tail(SharedMessageStatus *Stat, wc_printf(""); } else { - wc_printf("
" - "↓ ↓ ↓ %s ↓ ↓ ↓" - "
", "no more messages FIXME" + long gt = 0; /* if new messages appear later, where will they begin? */ + if (Stat->nummsgs > 0) { + gt = BBS->msgs[BBS->num_msgs-1]; + } + else { + gt = atol(bstr("gt")); + } + wc_printf("", + morediv, + gt, + Stat->maxmsgs, + (Stat->reverse ? 2 : 1) ); + wc_printf("
"); + wc_printf("no more ... gt would have been %ld ... FIXME", gt); + wc_printf("
"); + wc_printf("
"); } wc_printf("



");