Ignore:
Timestamp:
Nov 11, 2010, 1:39:58 PM (11 years ago)
Author:
work@…
Message:
  • initial version of the setup assistant
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/controllers/HomeController.groovy

    r1063 r1119  
    11import dbnp.studycapturing.Study
     2import dbnp.studycapturing.Template
    23
    34/**
     
    1718class HomeController {
    1819    def index = {
    19        [ studyCount: dbnp.studycapturing.Study.count(), userCount: dbnp.authentication.SecUser.count() ]
     20            if (!Template.count()) {
     21                    redirect(controller:'setup',action:'index')             
     22            } else {
     23                    [ studyCount: dbnp.studycapturing.Study.count(), userCount: dbnp.authentication.SecUser.count() ]
     24            }
    2025    }
    2126   
Note: See TracChangeset for help on using the changeset viewer.