#if ( $editPage.getMimeType().startsWith("image/")) #set ( $type = "image" ) #else #set( $type = "file" ) #end $context.putPageValue("type", $type) $context.putPageValue("editPath", $editPage.path) #set( $canedit = $pages.canEdit($editPage.path)) #set( $newcontext = $context.copy($toolbar) ) $!newcontext.setEditable($canedit)
#if (!($canuseeditmenu == false)) #end
$pages.include("${page.filerootpath}/overview/actionbuttons.html", $context)
#if( $editPage.exists() ) #set( $toolbar = $pageManager.getPage("/system/tools/toolbar.html" ) ) #if( !$editPage.isBinary() ) $pages.include("$page.filerootpath/text/textarea.html?editPath=$editPage.path", $context) #elseif( $editPage.getMimeType().startsWith("image/") ) #if( $editPage.getContentItem().getLength() < 50000 ) #else

[[View Fullsize Image]]

[[Image Preview]]

#end #else

$editPage.getMimeType()

#end #set( $revision = $pageManager.getLatestVersion($editPage.path) ) #if( $revision.author ) [[Last Edited By]]: $revision.author on #end $editPage.getLastModified("MM/dd/yy h:mm a") $context.getPageProperty('text.filesize'): $filesize.inEnglish( $editPage.path ) #else [[Does not exist]] #end
$editPage.name