Pages require $workflow.getLevelCount() levels of approval.
#end| Level | $context.getPageProperty('text.page') | $context.getPageProperty('text.title') | $context.getPageProperty('text.message') | $context.getPageProperty('text.author') | $context.getPageProperty('text.modified') | ||
|---|---|---|---|---|---|---|---|
| #if( $workflow.getLevelCount() > 0 ) #if( $page.get("approve.level") ) Ready #else Draft #end #else Final #end | ##Need to get the original page to get the path and do a diff ##Need to get the last version of this draft ##need to add Reason for edit: to editor box #set( $orig = $workflow.getOriginalPage($page) )$orig.path | $!orig.title | #set( $version = $workflow.getLastVersion($page) )$!version.message | $!workflow.getUserDescription($version.author) | $page.getLastModified("M/dd/yy h:mm a") | #set ( $origURL=$url_util.getOriginalUrl() ) $context.putPageValue("editPage",$page ) $pages.stream("/openedit/views/workflow/approvetoolbar.html",$context ) |