Author: ludovic
Date: 2007-09-06 15:15:04 +0200 (Thu, 06 Sep 2007)
New Revision: 4744

Modified:
   xwiki-platform/web/trunk/standard/src/main/webapp/templates/changesdoc.vm
Log:
XWIKI-1710 Fixed exception in old diff template. Added class changes diff.

Modified: 
xwiki-platform/web/trunk/standard/src/main/webapp/templates/changesdoc.vm
===================================================================
--- xwiki-platform/web/trunk/standard/src/main/webapp/templates/changesdoc.vm   
2007-09-06 13:13:45 UTC (rev 4743)
+++ xwiki-platform/web/trunk/standard/src/main/webapp/templates/changesdoc.vm   
2007-09-06 13:15:04 UTC (rev 4744)
@@ -277,3 +277,32 @@
 #end
 </table>
 </div>
+
+#set($cchanges = $doc.getClassDiff($origdoc, $newdoc))
+#if(($cchanges.size()>0)&&($cchanges.get(0).size()>0))
+<div id="changes-classes">
+<table class="changes-table">
+<tr class="changes-table-title">
+<th colspan="3">$msg.get("changes.classeschanges")</th>
+</tr>
+<tr class="changes-table-title">
+<th>$msg.get("changes.property")</th>
+</tr>
+#set($hasclasseschanges = 0)
+#foreach($objdiffs in $cchanges)
+#foreach($objdiff in $objdiffs)
+#set($hasclasseschanges = 1)
+#set($propname = $objdiff.getPropName())
+#if($propname!="content")
+<tr>
+<td>$propname</td>
+</tr>
+#end
+#end
+#end
+#if($hasclasseschanges==0)
+<tr><td colspan="3">$msg.get("changes.noclasseschanges")</td></tr>
+#end
+</table>
+</div>
+#end

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

Reply via email to