$action.getActionName($action.getClass().getName())

#applyDecorator("root") #decoratorParam("helper" $action.helper) #decoratorParam("context" "space-attachments") #decoratorParam("mode" "view-attachments")
#set ($results = $action.paginationSupport.page) #if (!$results.empty || $textUtil.stringSet($fileExtension)) $action.getText('filter.by.ext'): #end #if (!$results.empty) #pagination($action.paginationSupport "listattachmentsforspace.action?key=$!generalUtil.urlEncode($key)&startsWith=$!generalUtil.urlEncode($!action.startsWith)&sortBy=$!generalUtil.urlEncode($!sortBy)&fileExtension=$!generalUtil.urlEncode($!fileExtension)&")

$action.getText('columnheading.name') | $action.getText('columnheading.size') | $action.getText('creator.name') ($action.getText('space-last-modifier')) | $action.getText('columnheading.creation.date') | $action.getText('space-last-mod-date') | $action.getText('attached.to')
--- | --- | --- | --- | --- | ---
#foreach ($result in $results) #set($attachment = $result.resultObject)
#parse ("/pages/includes/attachment_icon.vm") $!attachment.fileName | $!attachment.niceFileSize | #usernameLink($!attachment.creatorName) #if ($!attachment.creationDate!=$!attachment.lastModificationDate) ($action.getText('last.modified.by') #usernameLink($!attachment.lastModifierName)) #end | $dateFormatter.format($!attachment.creationDate) | $dateFormatter.format($!attachment.lastModificationDate) | #contentLink2 ($!attachment.getContent() true false)
#end

#pagination($action.paginationSupport "listattachmentsforspace.action?key=$!generalUtil.urlEncode($key)&startsWith=$!generalUtil.urlEncode($!action.startsWith)&sortBy=$!generalUtil.urlEncode($!sortBy)&fileExtension=$!generalUtil.urlEncode($!fileExtension)&") #else #if ($textUtil.stringSet($fileExtension)) $action.getText('currently.no.attachments.in.space.ending.with.ext', ["$generalUtil.htmlEncode($fileExtension)"]) #else $action.getText('currently.no.attachments.in.space') #end #end
#end