(* COCANWIKI - a wiki written in Objective CAML.
* Written by Richard W.M. Jones <rich@merjis.com>.
* Copyright (C) 2004 Merjis Ltd.
- * $Id: cocanwiki_ok.ml,v 1.1 2004/10/21 11:42:05 rich Exp $
+ * $Id: cocanwiki_ok.ml,v 1.2 2005/03/31 14:24:05 rich Exp $
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
open Cocanwiki_template
-(* Override StdPages.ok and StdPages.error with out our versions.
+(* Override Template.StdPages.ok and Template.StdPages.error with our versions.
* Also have some standard buttons around.
*)
let ok_error_template = _get_template "ok_error.html"
?icon_alt ?back_button ?close_button q message =
(* Set the status so scripts can determine if the request failed. *)
Request.set_status q#request cHTTP_BAD_REQUEST;
- StdPages.error ?cookie ?cookies ~template:ok_error_template
+ Template.StdPages.error ?cookie ?cookies ~template:ok_error_template
?title ~icon ?icon_alt ?back_button ?close_button q message
let ok ?cookie ?cookies ?title ?(icon = "/_graphics/ok.png")
?icon_alt ?back_button ?close_button ?buttons q message =
- StdPages.ok ?cookie ?cookies ~template:ok_error_template
+ Template.StdPages.ok ?cookie ?cookies ~template:ok_error_template
?title ~icon ?icon_alt ?back_button ?close_button ?buttons q message
-let ok_button url = { StdPages.label = " OK ";
- StdPages.link = url;
- StdPages.method_ = None;
- StdPages.params = [] }
+let ok_button url = { Template.StdPages.label = " OK ";
+ Template.StdPages.link = url;
+ Template.StdPages.method_ = None;
+ Template.StdPages.params = [] }