$action.getText("title.diff.page") - $!page.title #if ($originalPage && $revisedPage)(v.$!originalPage.version vs v.$!revisedPage.version)#else(Page versions not found)#end

#set ($confPage = $action.page) #set ($pageType = $confPage.getType()) #set ($helper = $action.helper) #set ($commentToShow = $revisedPage.version - 1 == $originalPage.version && $stringUtils.isNotEmpty($revisedPage.versionComment)) #applyDecorator("root") #decoratorParam("helper" $action.helper) #decoratorParam("mode" "view-information") #decoratorParam("context" "$pageType") $spaceKey
#if ($actionErrors.size() == 0)

#macro (printCurrentIfLatestVersion $pageVersion) #if ($action.getLatestVersion().version == $pageVersion) Current#else Version $pageVersion#end#end
$action.getText("version.by.user.on.date", ["viewpage.action?pageId=${originalPage.id}", "$originalPage.version", "#usernameLink($originalPage.lastModifierName)", "$dateFormatter.formatDateTime($originalPage.lastModificationDate)", "$dateFormatter.formatDateTime($originalPage.lastModificationDate)" ]) #set ($previousVersionId = $action.getPageIdOfVersionBefore($originalPage)) #if ($previousVersionId > 0) #set ($previousVersionBeforeOriginalPage = $originalPage.version - 1) << $action.getText("changes.from.date.to.date", ["$previousVersionBeforeOriginalPage", "$originalPage.version"]) #end | $action.getText("compared.with") | #if ($action.getLatestVersion().version == $revisedPage.version) $action.getText("current.by.user.on.date", ["viewpage.action?pageId=${revisedPage.id}","#usernameLink($revisedPage.lastModifierName)","$dateFormatter.formatDateTime($revisedPage.lastModificationDate)"]) #else $action.getText("version.by.user.on.date", ["viewpage.action?pageId=${revisedPage.id}", "$revisedPage.version", "#usernameLink($revisedPage.lastModifierName)", "$dateFormatter.formatDateTime($revisedPage.lastModificationDate)", "$dateFormatter.formatDateTime($revisedPage.lastModificationDate)" ]) #end #if ($commentToShow) ($action.getText("show.comment")) ($action.getText("hide.comment")) #end #set ($nextVersionId = $action.getPageIdOfVersionAfter($revisedPage)) #if ($nextVersionId > 0) #set ($nextVersionAfterRevised = $revisedPage.version + 1) $action.getText("changes.to.version.to.version", ["$revisedPage.version", "$nextVersionAfterRevised"]) >> #end
| $action.getText("heading.key") $action.getText("these.lines.were.removed") $action.getText("these.lines.were.changed") $action.getText("these.lines.were.added")

#versionComment()

## $action.getText("there.are.num.changes", ["$action.diff.numChanges"])

$action.getText("view.page.history") #set ($lineChunks = $action.diff.chunks) #set ($allowSnipToggle = true) #parse ("/template/includes/page-diffs.vm") #end
#end