source: trunk/grails-app/controllers/HomeController.groovy @ 1426

Last change on this file since 1426 was 1426, checked in by work@…, 10 years ago
  • Resolved part of improvement #225
  • refactored the template model out of GSCF into the GDT (Grails Domain Templates) plugin version 0.0.1
  • still work needs to be done (move template editor into gdt, etcetera)
  • fix template owner
  • some methods are missing from Template, but most of it works
  • Property svn:keywords set to Author Date Rev
File size: 685 bytes
Line 
1import dbnp.studycapturing.*
2import org.codehaus.groovy.grails.commons.GrailsApplication
3
4/**
5 * Home Controler
6 *
7 * My Description
8 *
9 * @author  Kees van Bochove
10 * @since   20091102
11 * @package studycapturing
12 *
13 * Revision information:
14 * $Rev: 1426 $
15 * $Author: work@osx.eu $
16 * $Date: 2011-01-21 18:37:02 +0000 (vr, 21 jan 2011) $
17 */
18class HomeController {
19    def index = {
20            //if (!Template.count() && grails.util.GrailsUtil.environment != GrailsApplication.ENV_TEST && grails.util.GrailsUtil.environment != "dbnptest") {
21                //    redirect(controller:'setup',action:'index')
22            //} else {
23                    [ studyCount: dbnp.studycapturing.Study.count(), userCount: dbnp.authentication.SecUser.count(), facebookLikeUrl: '/' ]
24            //}
25    }
26   
27}
Note: See TracBrowser for help on using the repository browser.