Index: trunk/grails-app/conf/BootStrap.groovy
===================================================================
--- trunk/grails-app/conf/BootStrap.groovy (revision 923)
+++ trunk/grails-app/conf/BootStrap.groovy (revision 932)
@@ -1,2 +1,4 @@
+import org.codehaus.groovy.grails.commons.ConfigurationHolder as CH
+
class BootStrap
{
@@ -15,4 +17,5 @@
createDataService.ensureSystemAndAdminAccess()
createDataService.createBaseData()
+ CH.config.demoMode.enabled = true
createDataService.createDemoData()
createDataService.startSearchableIndex()
@@ -28,4 +31,5 @@
createDataService.ensureSystemAndAdminAccess()
createDataService.createBaseData()
+ if(CH.config.demoMode.enabled) createDataService.createDemoData()
createDataService.startSearchableIndex()
}
Index: trunk/grails-app/taglib/CustomTagLib.groovy
===================================================================
--- trunk/grails-app/taglib/CustomTagLib.groovy (revision 923)
+++ trunk/grails-app/taglib/CustomTagLib.groovy (revision 932)
@@ -174,5 +174,5 @@
// def messageSource = grailsAttributes.getApplicationContext().getBean("messageSource")
// def locale = RCU.getLocale(request)
-//
+//
// title = messageSource.getMessage(titleKey, null, title, locale)
// }
@@ -374,4 +374,15 @@
/**
+ * Returns the correct headerId for the main header div.
+ */
+ def headerId = { attrs, body ->
+ def headerId = ''
+ if(grails.util.Environment.isDevelopmentMode()) headerId = 'HeaderDev'
+ else if(grailsApplication.config.demoMode.enabled) headerId = 'HeaderDemo'
+ else headerId = 'Header'
+ out << headerId
+ }
+
+ /**
* Determine if a supplied string is considered a url or not.
* The scheme/protocol can be adjusted, file:// has been excluded here.
Index: trunk/grails-app/views/layouts/main.gsp
===================================================================
--- trunk/grails-app/views/layouts/main.gsp (revision 923)
+++ trunk/grails-app/views/layouts/main.gsp (revision 932)
@@ -34,14 +34,7 @@