projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
92cc161
)
Temporary text renderer for blog view, displays posts and the comment count
author
Art Cancro
<ajc@citadel.org>
Tue, 19 Oct 2010 21:42:33 +0000
(17:42 -0400)
committer
Art Cancro
<ajc@citadel.org>
Tue, 19 Oct 2010 21:42:33 +0000
(17:42 -0400)
webcit/blogview_renderer.c
patch
|
blob
|
history
diff --git
a/webcit/blogview_renderer.c
b/webcit/blogview_renderer.c
index 7e79fc7bd66ec99135a7a1f5977b2f20ec9e90bf..30ede0c14a1c3eb998d9e3f0f489b31af211f083 100644
(file)
--- a/
webcit/blogview_renderer.c
+++ b/
webcit/blogview_renderer.c
@@
-40,9
+40,15
@@
struct blogpost {
* FIXME do the needful with regard to gettext
*/
void blogpost_render_and_destroy(struct blogpost *bp) {
* FIXME do the needful with regard to gettext
*/
void blogpost_render_and_destroy(struct blogpost *bp) {
- if (bp->num_msgs > 0) wc_printf("Blog post %ld<br>\n", bp->msgs[0]);
- if (bp->num_msgs > 1) wc_printf(" <i>%d comments</i><br>\n", bp->num_msgs - 1);
- wc_printf("<br>\n");
+ const StrBuf *Mime;
+
+ if (bp->num_msgs > 0) {
+ read_message(WC->WBuf, HKEY("view_message"), bp->msgs[0], NULL, &Mime);
+ wc_printf("<div align=\"right\"><i>%d comments</i></div>\n", bp->num_msgs - 1);
+ wc_printf("<br>\n");
+ }
+
+
if (bp->alloc_msgs > 0) {
free(bp->msgs);
}
if (bp->alloc_msgs > 0) {
free(bp->msgs);
}