projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
7178ddb
)
Added the 'older posts' entry to blog view
author
Art Cancro
<ajc@uncensored.citadel.org>
Mon, 6 Jun 2011 17:28:38 +0000
(13:28 -0400)
committer
Wilfried Goesgens
<dothebart@citadel.org>
Sun, 4 Sep 2011 20:58:47 +0000
(20:58 +0000)
webcit/blogview_renderer.c
patch
|
blob
|
history
diff --git
a/webcit/blogview_renderer.c
b/webcit/blogview_renderer.c
index 83a8359882bc309437dcb55d0fb50e9c1e2762f4..8132255acdbf3db491123fa4c6c04e647d12a258 100644
(file)
--- a/
webcit/blogview_renderer.c
+++ b/
webcit/blogview_renderer.c
@@
-294,7
+294,16
@@
int blogview_render(SharedMessageStatus *Stat, void **ViewSpecific, long oper)
/* Now go through the list and render what we've got */
for (i=start_here; i<num_blogposts; ++i) {
/* Now go through the list and render what we've got */
for (i=start_here; i<num_blogposts; ++i) {
- blogpost_render(blogposts[i], with_comments);
+ wc_printf("<tt>%d</tt><br>\n", blogposts[i]->top_level_id);
+ if (i < (start_here + maxp)) {
+ blogpost_render(blogposts[i], with_comments);
+ }
+ else if (i == (start_here + maxp)) {
+ wc_printf("<a href=\"readfwd?go=");
+ urlescputs(ChrPtr(WC->CurRoom.name));
+ wc_printf("?firstp=%d?maxp=%d\">", blogposts[i]->top_level_id, maxp);
+ wc_printf("← %s</a><br>\n", _("Older posts"));
+ }
}
/* Done. We are only freeing the array of pointers; the data itself
}
/* Done. We are only freeing the array of pointers; the data itself