r957 - xwiki/trunk/src/main/web/templates

Nguyen Viet Chung chungnv at users.forge.objectweb.org
Thu Mar 2 11:40:27 CET 2006


Author: chungnv
Date: 2006-03-02 11:40:27 +0100 (Thu, 02 Mar 2006)
New Revision: 957

Added:
   xwiki/trunk/src/main/web/templates/docdoesnotexist.vm
Log:
Document does not exist now display a nice message
Document already exist (when adding a template) now displays a nice message
Template that does not exist now displays a nice message

Added: xwiki/trunk/src/main/web/templates/docdoesnotexist.vm
===================================================================
--- xwiki/trunk/src/main/web/templates/docdoesnotexist.vm	2006-03-02 10:39:11 UTC (rev 956)
+++ xwiki/trunk/src/main/web/templates/docdoesnotexist.vm	2006-03-02 10:40:27 UTC (rev 957)
@@ -0,0 +1,24 @@
+#template("xwiki.vm")
+#template("httpheader.vm")
+#template("header.vm")
+#template("viewheader.vm")
+<div id="xwikicontent">
+    #if($xwiki.exists("XWiki.DocumentDoesNotExist"))
+    $xwiki.includeForm("XWiki.DocumentDoesNotExist",false)
+    #else
+    <center><h2>
+        $msg.get("thispagedoesnotexist")
+    </h2>
+    </center>
+    <br/><br/>
+    #set($url = $doc.getURL("edit", $editparams))
+    <center>
+        $xwiki.parseMessage("youcanclicktoedit")
+    </center>
+    <br/><br/>
+    #end
+</div>
+#template("basefooter.vm")
+#template("footer.vm")
+
+





More information about the Xwiki-notifications mailing list