## $Revision$ $Date$
#if(!$isCurrentProject)${project.name} - #end Recent Wiki Pages |
#foreach($wikiUpdate in $wikiUpdates)
#set($comment = "") ## clear this, because NULL comment assignments would not overwrite previous values
#if(${wikiUpdate.class.name} == "com.intland.codebeamer.persistence.dto.ArtifactHistoryEntryDto")
## wiki page
#set($title = "Wiki Page Updated")
#set($name = ${wikiUpdate.artifact.name})
#set($comment = ${wikiUpdate.comment})
#set($url = "${contextPath}/wiki/${wikiUpdate.artifact.id}")
#set($user = ${wikiUpdate.user})
#set($date = ${wikiUpdate.executedAt})
#if(${wikiUpdate.operationId} == 1)
#set($action = "created")
#elseif(${wikiUpdate.operationId} == 2)
#set($action = "deleted")
#elseif(${wikiUpdate.operationId} == 3)
#set($action = "edited")
#elseif(${wikiUpdate.operationId} == 5)
#set($action = "properties edited")
#else
#set($action = ${wikiUpdate.operationId})
#end
#else
## wiki page comment or attachment
#if(${wikiUpdate.dataLength} > 0)
#set($title = "Wiki Attachment Updated")
#set($name = ${wikiUpdate.filename})
#set($comment = "${wikiUpdate.description}")
#else
#set($title = "Wiki Comment Updated")
#set($name = ${wikiUpdate.artifact.name})
#set($comment = ${wikiUpdate.description})
#end
#set($url = "${contextPath}/proj/wiki/displayWikiPageProperties.spr?doc_id=${wikiUpdate.artifact.id}&orgDitchnetTabPaneId=wiki-page-comments")
#set($user = ${wikiUpdate.submitter})
#set($date = ${wikiUpdate.submittedAt})
#set($action = "commented")
#end
#trOpen()
#tdArrow()
${name} - $action by #linkUserShort($user)
$textFormatter.formatDate(${user}, ${date})
#if(${comment} != "")
($textFormatter.abbreviate(${comment}))
#end
|
#trClose()
#end
#if( ${wikiUpdates.size()} == 0)
#trOpen()
#tdText("No wiki pages updated or commented recently.")
#trClose()
#end