- Timestamp:
- May 1, 2011, 12:46:31 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
-
Property
svn:mergeinfo
set to
/branches/features/grailsUpgrade merged eligible
-
Property
svn:mergeinfo
set to
-
trunk/grails-app/controllers/AssetDetailedController.groovy
r749 r913 44 44 } 45 45 46 /** 47 * Build and return the compact asset tree response. 48 */ 49 @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_AssetManager', 'ROLE_AssetUser']) 50 def assetTreeCompact = { 51 def assetInstance = Asset.read(params.id) 52 if(!assetInstance) { 53 render g.message(code: 'default.not.found', args: ['Asset',params.id]) 54 return 55 } 56 57 render(template:"/shared/assetTreeCompact", model:['assetInstance':assetInstance]) 58 } 59 46 60 @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_AssetManager', 'ROLE_AssetUser']) 47 61 def exportAssetTreeHtml = { … … 150 164 if(params?.format && params.format != "html") { 151 165 152 def dateFmt = { d ate ->153 formatDate(format: "EEE, dd-MMM-yyyy", date: date)166 def dateFmt = { domain, value -> 167 formatDate(format: "EEE, dd-MMM-yyyy", date: value) 154 168 } 155 169 156 // def fmtAsset = { m ->170 // def fmtAsset = { d, m -> 157 171 // def r = '' 158 172 // def assetInstance = Asset.findByName(m) … … 170 184 // } 171 185 172 // def fmtSubAsset = { m ->186 // def fmtSubAsset = { d, m -> 173 187 // def r = '' 174 188 // m.each() {
Note: See TracChangeset
for help on using the changeset viewer.