Index: xwiki-platform-web/standard/src/main/webapp/skins/albatross/editactions.vm =================================================================== --- xwiki-platform-web/standard/src/main/webapp/skins/albatross/editactions.vm (revision 4018) +++ xwiki-platform-web/standard/src/main/webapp/skins/albatross/editactions.vm (working copy) @@ -45,6 +45,14 @@ $msg.get("core.comment"): #end #end + +#if((!$tdoc.isNew())&&(!$minorFieldAdded)&&($xwiki.hasMinorEdit())) +#set($minorFieldAdded = 1) +
+ $msg.get("core.minoredit") +
+#end + #set($param = "") #if ($sectionNumber && ($sectionNumber != 0)) #set($param = "section=$sectionNumber") Index: xwiki-platform-web/standard/src/main/webapp/skins/albatross/historyinline.vm =================================================================== --- xwiki-platform-web/standard/src/main/webapp/skins/albatross/historyinline.vm (revision 4018) +++ xwiki-platform-web/standard/src/main/webapp/skins/albatross/historyinline.vm (working copy) @@ -20,38 +20,49 @@ #if(!$revisionscount) #set($revisionscount = 0) #end +#set($skipnext = false) +#set($versionshown = 0) #if ($tdoc.realLanguage!="") #set($lang = "&language=${tdoc.realLanguage}") #else #set($lang = "") #end #foreach ($version in $tdoc.getRecentRevisions($revisionscount)) -#set($origdoc = "") -#set($newdoc = "") #set($nextversion = $version) -#set($newdoc = $xwiki.getDocument($tdoc, $nextversion)) - +#set($revinfo = $tdoc.getRevisionInfo($nextversion)) +#if($xwiki.hasMinorEdit() && (!$request.getParameter("showminor"))) + #set($skipcur = $skipnext) + #set($skipnext = $revinfo.isMinorEdit()) +#end +#if(!$skipcur) + #set($versionshown = $versionshown + 1) + $nextversion -#if($newdoc=="") - – - – -#else - $xwiki.getLocalUserName($newdoc.author) - $xwiki.formatDate($newdoc.date, "dd/MM/yyyy hh:mm") -#end + $xwiki.getLocalUserName($revinfo.author) + $xwiki.formatDate($revinfo.date, "dd/MM/yyyy hh:mm") #if($xwiki.hasEditComment()) - $!{newdoc.comment} + $!{revinfo.comment} #end #if($hasedit || $hasadmin) $msg.get("rollback") #end #end +#end -
+
+
+ #if($xwiki.hasMinorEdit()) + #if(!$request.getParameter("showminor")) +
$msg.get("core.minoredit.show")
+ #else +
$msg.get("core.minoredit.hide")
+ #end + #end
+ Index: xwiki-platform-web/standard/src/main/webapp/templates/preview.vm =================================================================== --- xwiki-platform-web/standard/src/main/webapp/templates/preview.vm (revision 4018) +++ xwiki-platform-web/standard/src/main/webapp/templates/preview.vm (working copy) @@ -17,6 +17,7 @@ +

#template("hiddenobject.vm") Index: xwiki-product-enterprise/wiki/src/main/resources/Main/Dashboard =================================================================== --- xwiki-product-enterprise/wiki/src/main/resources/Main/Dashboard (revision 4018) +++ xwiki-product-enterprise/wiki/src/main/resources/Main/Dashboard (working copy) @@ -66,7 +66,11 @@ <div id="webhomeNewsdisplay" style="float:left; width: 50%;"> <div style="padding-left: 20px;"> <h2 class="heading-1-1-1">Recent changes <a href="$xwiki.getURL("Main.WebRss", "view", "xpage=rdf")")" style=""><img src="$xwiki.getSkinFile("icons/black-rss.png")"/></a></h2> - #set ($sql = "where 1=1 order by doc.date desc") + #if($request.getParameter("showminor")) + #set ($sql = "where 1=1 order by doc.date desc") + #else + #set ($sql = ", XWikiRCSNodeInfo as ni where doc.id=ni.id.docId and ni.id.version2=1 group by doc.web, doc.name order by max(ni.date) desc") + #end #set($showdata = 1) #if(!$nb) #set($nb = 30) @@ -122,8 +126,13 @@ #end #end </ul> + #if($request.getParameter("showminor")) + <a href="$xwiki.getURL($tdoc.getFullName(), "view", "")">hide minor edits</a> + #else + <a href="$xwiki.getURL($tdoc.getFullName(), "view", "showminor")">show minor edits</a> + #end </div> </div> <div style="clear:both; margin-bottom: 40px;"><!-- --></div> </div> - \ No newline at end of file +