Author: sdumitriu
Date: 2008-02-13 16:23:29 +0100 (Wed, 13 Feb 2008)
New Revision: 7587

Added:
   xwiki-platform/web/trunk/standard/src/main/webapp/templates/changeavatar.vm
Removed:
   
xwiki-platform/skins/trunk/albatross/src/main/resources/albatross/changeavatar.vm
Log:
XWIKI-2114: Upgrade the default templates


Deleted: 
xwiki-platform/skins/trunk/albatross/src/main/resources/albatross/changeavatar.vm
===================================================================
--- 
xwiki-platform/skins/trunk/albatross/src/main/resources/albatross/changeavatar.vm
   2008-02-13 15:22:29 UTC (rev 7586)
+++ 
xwiki-platform/skins/trunk/albatross/src/main/resources/albatross/changeavatar.vm
   2008-02-13 15:23:29 UTC (rev 7587)
@@ -1,20 +0,0 @@
-###
-### Change a user's avatar
-###
-### Set the "avatar" property of the XWikiUsers object to the most recent 
attachment and forward to "view"
-### TODO: Check dimensions
-### TODO: Document version to return to? (rev and language)
-###
-#if($doc.getObject("XWikiUsers", 0) && ($context.user == $doc.fullName || 
$hasadmin))
-#set($date = $doc.attachmentList.get(0).date)
-#set($name = $doc.attachmentList.get(0).filename)
-#foreach($attachment in $doc.attachmentList)
-#if($date.getTime().longValue().compareTo($attachment.date.getTime().longValue())
 == -1)
-#set($date = $attachment.date)
-#set($name = $attachment.filename)
-#end
-#end
-$response.sendRedirect($doc.getURL("save", "XWiki.XWikiUsers_0_avatar=$name"))
-#else
-$response.sendRedirect($doc.getURL("view"))
-#end
\ No newline at end of file

Copied: 
xwiki-platform/web/trunk/standard/src/main/webapp/templates/changeavatar.vm 
(from rev 7586, 
xwiki-platform/skins/trunk/albatross/src/main/resources/albatross/changeavatar.vm)
===================================================================
--- xwiki-platform/web/trunk/standard/src/main/webapp/templates/changeavatar.vm 
                        (rev 0)
+++ xwiki-platform/web/trunk/standard/src/main/webapp/templates/changeavatar.vm 
2008-02-13 15:23:29 UTC (rev 7587)
@@ -0,0 +1,20 @@
+###
+### Change a user's avatar
+###
+### Set the "avatar" property of the XWikiUsers object to the most recent 
attachment and forward to "view"
+### TODO: Check dimensions
+### TODO: Document version to return to? (rev and language)
+###
+#if($doc.getObject("XWikiUsers", 0) && ($context.user == $doc.fullName || 
$hasadmin))
+#set($date = $doc.attachmentList.get(0).date)
+#set($name = $doc.attachmentList.get(0).filename)
+#foreach($attachment in $doc.attachmentList)
+#if($date.getTime().longValue().compareTo($attachment.date.getTime().longValue())
 == -1)
+#set($date = $attachment.date)
+#set($name = $attachment.filename)
+#end
+#end
+$response.sendRedirect($doc.getURL("save", "XWiki.XWikiUsers_0_avatar=$name"))
+#else
+$response.sendRedirect($doc.getURL("view"))
+#end
\ No newline at end of file

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

Reply via email to