projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
079f36f
)
* Stub functions for wiki history display
author
Art Cancro
<ajc@citadel.org>
Fri, 23 Oct 2009 00:26:29 +0000
(
00:26
+0000)
committer
Art Cancro
<ajc@citadel.org>
Fri, 23 Oct 2009 00:26:29 +0000
(
00:26
+0000)
webcit/wiki.c
patch
|
blob
|
history
diff --git
a/webcit/wiki.c
b/webcit/wiki.c
index e64e33cf9a6abc2e10b73658f093de504008e705..aaa327859a8532444a7366ef98419965bfc7843d 100644
(file)
--- a/
webcit/wiki.c
+++ b/
webcit/wiki.c
@@
-66,6
+66,7
@@
void display_wiki_page_backend(const StrBuf *roomname, char *pagename)
/* Found it! Now read it. */
msgnum = locate_message_by_uid(pagename);
if (msgnum >= 0L) {
/* Found it! Now read it. */
msgnum = locate_message_by_uid(pagename);
if (msgnum >= 0L) {
+ wprintf("FIXME can we put wiki nav links in or something?<br>\n");
read_message(WC->WBuf, HKEY("view_message"), msgnum, NULL, &Mime);
return;
}
read_message(WC->WBuf, HKEY("view_message"), msgnum, NULL, &Mime);
return;
}
@@
-101,6
+102,24
@@
void display_wiki_page(void)
}
}
+/*
+ * Display the revision history for a wiki page
+ */
+void display_wiki_history(void)
+{
+ const StrBuf *roomname;
+ char pagename[128];
+
+ output_headers(1, 1, 1, 0, 0, 0);
+ roomname = sbstr("room");
+ safestrncpy(pagename, bstr("page"), sizeof pagename);
+
+ wprintf("FIXME put something here<br>\n");
+
+ wDumpContent(1);
+}
+
+
int wiki_Cleanup(void **ViewSpecific)
{
char pagename[5];
int wiki_Cleanup(void **ViewSpecific)
{
char pagename[5];
@@
-124,6
+143,7
@@
InitModule_WIKI
);
WebcitAddUrlHandler(HKEY("wiki"), "", 0, display_wiki_page, 0);
);
WebcitAddUrlHandler(HKEY("wiki"), "", 0, display_wiki_page, 0);
+ WebcitAddUrlHandler(HKEY("wiki_history"), "", 0, display_wiki_history, 0);
}
}