Index: /trunk/grails-app/taglib/AssetTreeTagLib.groovy
===================================================================
--- /trunk/grails-app/taglib/AssetTreeTagLib.groovy	(revision 307)
+++ /trunk/grails-app/taglib/AssetTreeTagLib.groovy	(revision 308)
@@ -1,5 +1,5 @@
 /**
 * Asset Tree tags.
-* Specific to gnumims hence the namespace.
+* Specific to gnuMims hence the namespace.
 */
 class AssetTreeTagLib {
@@ -48,4 +48,33 @@
 
         def mkp = new groovy.xml.MarkupBuilder(out) //this line will be unnecessary in versions of Grails after version 1.2
+
+        // Offer a site create link if no sites are found.
+        if(!sites) {
+            mkp.div(class: 'overlayPane', id: 'assetTreePane', style: 'display:none;') {
+                div(class: 'tree', id: 'assetTreeTable') {
+                    table() {
+                        tr() {
+                            td( valign: 'top', class: 'value') {
+                                ul() {
+                                    img(src: treeRootImg(), alt: 'TreeRoot')
+                                    li() {
+                                        a(href: siteCreateLink()) {
+                                            img(src: addImg(), alt: 'Add', title: 'Add Site')
+                                        }
+                                    } // li
+                                } // ul
+                            } // td
+                        } // tr
+                    } // table
+                } // div
+
+                div( class: 'buttons') {
+                    span(class: 'button') {
+                        input( type: 'button', value: 'Close', onclick: hideAssetTreePane() )
+                    }
+                } // button div
+            } // mkp
+            return
+        } // if(!sites)
 
 
@@ -285,4 +314,7 @@
     /** Links */
 
+    def siteCreateLink() {
+        createLink(controller: 'siteDetailed', action: 'create').toString()
+    }
     def siteShowLink(id) {
         createLink(controller: 'siteDetailed', action: 'show', params: ['id': id] ).toString()
Index: /trunk/grails-app/views/sectionDetailed/create.gsp
===================================================================
--- /trunk/grails-app/views/sectionDetailed/create.gsp	(revision 307)
+++ /trunk/grails-app/views/sectionDetailed/create.gsp	(revision 308)
@@ -59,4 +59,7 @@
                                 <td valign="top" class="value ${hasErrors(bean:sectionInstance,field:'department','errors')}">
                                     <g:select optionKey="id" from="${Department.list()}" name="department.id" value="${sectionInstance?.department?.id}" ></g:select>
+                                    <p>
+                                        <g:link controller="departmentDetailed" action="create">Add Department</g:link>
+                                    </p>
                                 </td>
                             </tr> 
Index: /trunk/grails-app/views/sectionDetailed/edit.gsp
===================================================================
--- /trunk/grails-app/views/sectionDetailed/edit.gsp	(revision 307)
+++ /trunk/grails-app/views/sectionDetailed/edit.gsp	(revision 308)
@@ -78,4 +78,7 @@
                                 <td valign="top" class="value ${hasErrors(bean:sectionInstance,field:'department','errors')}">
                                     <g:select optionKey="id" from="${Department.list()}" name="department.id" value="${sectionInstance?.department?.id}" ></g:select>
+                                    <p>
+                                        <g:link controller="departmentDetailed" action="create">Add Department</g:link>
+                                    </p>
                                 </td>
                             </tr> 
