Changeset 308 for trunk/grails-app/taglib
- Timestamp:
- Feb 1, 2010, 10:09:46 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/taglib/AssetTreeTagLib.groovy
r307 r308 1 1 /** 2 2 * Asset Tree tags. 3 * Specific to gnu mims hence the namespace.3 * Specific to gnuMims hence the namespace. 4 4 */ 5 5 class AssetTreeTagLib { … … 48 48 49 49 def mkp = new groovy.xml.MarkupBuilder(out) //this line will be unnecessary in versions of Grails after version 1.2 50 51 // Offer a site create link if no sites are found. 52 if(!sites) { 53 mkp.div(class: 'overlayPane', id: 'assetTreePane', style: 'display:none;') { 54 div(class: 'tree', id: 'assetTreeTable') { 55 table() { 56 tr() { 57 td( valign: 'top', class: 'value') { 58 ul() { 59 img(src: treeRootImg(), alt: 'TreeRoot') 60 li() { 61 a(href: siteCreateLink()) { 62 img(src: addImg(), alt: 'Add', title: 'Add Site') 63 } 64 } // li 65 } // ul 66 } // td 67 } // tr 68 } // table 69 } // div 70 71 div( class: 'buttons') { 72 span(class: 'button') { 73 input( type: 'button', value: 'Close', onclick: hideAssetTreePane() ) 74 } 75 } // button div 76 } // mkp 77 return 78 } // if(!sites) 50 79 51 80 … … 285 314 /** Links */ 286 315 316 def siteCreateLink() { 317 createLink(controller: 'siteDetailed', action: 'create').toString() 318 } 287 319 def siteShowLink(id) { 288 320 createLink(controller: 'siteDetailed', action: 'show', params: ['id': id] ).toString()
Note: See TracChangeset
for help on using the changeset viewer.