Changeset 279 for trunk/grails-app
- Timestamp:
- Jan 20, 2010, 8:42:31 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/taglib/AssetTreeTagLib.groovy
r278 r279 27 27 ul() { 28 28 img(src: treeRootImg(), alt: 'TreeRoot') 29 for(site in sites ) {29 for(site in sites.sort { p1, p2 -> p1.name.compareToIgnoreCase(p2.name) }) { 30 30 li() { 31 31 if(site.sections) { … … 46 46 div(id: divId, style: 'display:none;') { 47 47 ul() { 48 for(section in site.sections ) {48 for(section in site.sections.sort { p1, p2 -> p1.name.compareToIgnoreCase(p2.name) }) { 49 49 li() { 50 50 if(section.assets) { … … 66 66 div(id: divId, style: 'display:none;') { 67 67 ul() { 68 for(asset in section.assets ) {68 for(asset in section.assets.sort { p1, p2 -> p1.name.compareToIgnoreCase(p2.name) }) { 69 69 li() { 70 70 if(asset.assetSubItems) { … … 86 86 div(id: divId, style: 'display:none;') { 87 87 ul() { 88 for(assetSubItemL1 in asset.assetSubItems ) {88 for(assetSubItemL1 in asset.assetSubItems.sort { p1, p2 -> p1.name.compareToIgnoreCase(p2.name) }) { 89 89 li() { 90 90 if(assetSubItemL1.subItems) { … … 106 106 div(id: divId, style: 'display:none;') { 107 107 ul() { 108 for(assetSubItemL2 in assetSubItemL1.subItems ) {108 for(assetSubItemL2 in assetSubItemL1.subItems.sort { p1, p2 -> p1.name.compareToIgnoreCase(p2.name) }) { 109 109 li() { 110 110 if(assetSubItemL2.subItems) { … … 126 126 div(id: divId, style: 'display:none;') { 127 127 ul() { 128 for(assetSubItemL3 in assetSubItemL2.subItems ) {128 for(assetSubItemL3 in assetSubItemL2.subItems.sort { p1, p2 -> p1.name.compareToIgnoreCase(p2.name) }) { 129 129 li() { 130 130 if(assetSubItemL3.subItems) { … … 146 146 div(id: divId, style: 'display:none;') { 147 147 ul() { 148 for(assetSubItemL4 in assetSubItemL3.subItems ) {148 for(assetSubItemL4 in assetSubItemL3.subItems.sort { p1, p2 -> p1.name.compareToIgnoreCase(p2.name) }) { 149 149 li() { 150 150 // if(assetSubItemL4.subItems) {
Note: See TracChangeset
for help on using the changeset viewer.