Author: cvrabie
Date: 2008-02-20 11:23:12 +0100 (Wed, 20 Feb 2008)
New Revision: 7866
Added:
xwiki-products/curriki/trunk/web/src/main/webapp/skins/curriki8/docdoesnotexist.vm
Log:
CURRIKI-1665 - When you enter a page that does not exist you are not shown a
link to the edit page but a link to the previous page and to the curriki home
page
Added:
xwiki-products/curriki/trunk/web/src/main/webapp/skins/curriki8/docdoesnotexist.vm
===================================================================
---
xwiki-products/curriki/trunk/web/src/main/webapp/skins/curriki8/docdoesnotexist.vm
(rev 0)
+++
xwiki-products/curriki/trunk/web/src/main/webapp/skins/curriki8/docdoesnotexist.vm
2008-02-20 10:23:12 UTC (rev 7866)
@@ -0,0 +1,23 @@
+###
+### Document does not exist message
+###
+###
+$response.setStatus(404)
+#template("startpage.vm")
+<div class="main layoutsubsection">
+#if($xwiki.exists("XWiki.DocumentDoesNotExist"))
+ $xwiki.includeForm("XWiki.DocumentDoesNotExist",false)
+#else
+#xwikimessageboxstart($msg.get("notice") $msg.get("thispagedoesnotexist"))
+ <a
href="javascript:history.back(false)">${msg.err_404_previous_page}</a> | <a
href="$xwiki.getURL("Main.WebHome")">${msg.err_404_home_page}</a>
+
+ #if($request.user == "superadmin")
+ <br />
+ #set($url = $doc.getURL("edit", $editparams))
+ $xwiki.parseMessage("youcanclicktoedit")
+ #end
+#xwikimessageboxend()
+#end
+<div class="clearfloats"></div>
+</div>
+#template("endpage.vm")
_______________________________________________
notifications mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/notifications