Author: sdumitriu
Date: 2008-02-13 15:35:41 +0100 (Wed, 13 Feb 2008)
New Revision: 7578

Added:
   xwiki-platform/web/trunk/standard/src/main/webapp/templates/error.vm
   xwiki-platform/web/trunk/standard/src/main/webapp/templates/message.vm
   xwiki-platform/web/trunk/standard/src/main/webapp/templates/notice.vm
   xwiki-platform/web/trunk/standard/src/main/webapp/templates/warning.vm
Log:
XWIKI-1752: Generic "error", "warning" and "notice" templates


Added: xwiki-platform/web/trunk/standard/src/main/webapp/templates/error.vm
===================================================================
--- xwiki-platform/web/trunk/standard/src/main/webapp/templates/error.vm        
                        (rev 0)
+++ xwiki-platform/web/trunk/standard/src/main/webapp/templates/error.vm        
2008-02-13 14:35:41 UTC (rev 7578)
@@ -0,0 +1,5 @@
+###
+### Generic error message
+###
+#set($messageType = $msg.get("xwiki.core.errorMessageType"))
+#template("message.vm")


Property changes on: 
xwiki-platform/web/trunk/standard/src/main/webapp/templates/error.vm
___________________________________________________________________
Name: svn:eol-style
   + native

Added: xwiki-platform/web/trunk/standard/src/main/webapp/templates/message.vm
===================================================================
--- xwiki-platform/web/trunk/standard/src/main/webapp/templates/message.vm      
                        (rev 0)
+++ xwiki-platform/web/trunk/standard/src/main/webapp/templates/message.vm      
2008-02-13 14:35:41 UTC (rev 7578)
@@ -0,0 +1,17 @@
+###
+### Generic message
+###
+### Generally, this provides common code for error.vm, warning.vm and 
notice.vm, but can freely be
+### used by other code.
+###
+### Does not set an HTTP status code, as there is no generic code. Instead, 
the status code should
+### be set where the need for this message was detected.
+###
+#template("startpage.vm")
+<div class="main layoutsubsection">
+#xwikimessageboxstart("$!messageType" "$!message")
+$!details
+#xwikimessageboxend()
+<div class="clearfloats"></div>
+</div>
+#template("endpage.vm")


Property changes on: 
xwiki-platform/web/trunk/standard/src/main/webapp/templates/message.vm
___________________________________________________________________
Name: svn:eol-style
   + native

Added: xwiki-platform/web/trunk/standard/src/main/webapp/templates/notice.vm
===================================================================
--- xwiki-platform/web/trunk/standard/src/main/webapp/templates/notice.vm       
                        (rev 0)
+++ xwiki-platform/web/trunk/standard/src/main/webapp/templates/notice.vm       
2008-02-13 14:35:41 UTC (rev 7578)
@@ -0,0 +1,5 @@
+###
+### Generic notification message
+###
+#set($messageType = $msg.get("xwiki.core.noticeMessageType"))
+#template("message.vm")


Property changes on: 
xwiki-platform/web/trunk/standard/src/main/webapp/templates/notice.vm
___________________________________________________________________
Name: svn:eol-style
   + native

Added: xwiki-platform/web/trunk/standard/src/main/webapp/templates/warning.vm
===================================================================
--- xwiki-platform/web/trunk/standard/src/main/webapp/templates/warning.vm      
                        (rev 0)
+++ xwiki-platform/web/trunk/standard/src/main/webapp/templates/warning.vm      
2008-02-13 14:35:41 UTC (rev 7578)
@@ -0,0 +1,5 @@
+###
+### Generic warning message
+###
+#set($messageType = $msg.get("xwiki.core.warningMessageType"))
+#template("message.vm")


Property changes on: 
xwiki-platform/web/trunk/standard/src/main/webapp/templates/warning.vm
___________________________________________________________________
Name: svn:eol-style
   + native

_______________________________________________
notifications mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/notifications

Reply via email to