#set ($max = $action.maxAttachments - 1) $action.getActionName($action.getClass().getName()) #applyDecorator("root") #decoratorParam("helper" $action.helper) #decoratorParam("mode" "view-attachments") #decoratorParam("context" "$action.page.type") #requireResource("confluence.web.resources:attachments")
#if ($latestVersionsOfAttachments.size() > 0) #set ($contextPath = "$req.contextPath/pages/viewpageattachments.action?pageId=$pageId&sortBy=$sortBy&") #set ($sortPathPrefixHtml = "?pageId=$page.id&sortBy=") #set ($showActions = "true") #set ($old = "true") #set ($attachmentHelper = $action) #parse("/pages/includes/attachments-table.vm") #if ($action.latestVersionsOfAttachments.size() > 1) $action.getText('download.all') #end #pagination($action.paginationSupport $contextPath) #else $action.getText('currently.no.attachments') #end
#if( $action.hasAttachFilePermissions() )
#parse ("/pages/uploadattachments.vm")
#end
#end