Changeset 1119 for trunk/grails-app/controllers/HomeController.groovy
- Timestamp:
- Nov 11, 2010, 1:39:58 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/controllers/HomeController.groovy
r1063 r1119 1 1 import dbnp.studycapturing.Study 2 import dbnp.studycapturing.Template 2 3 3 4 /** … … 17 18 class HomeController { 18 19 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 } 20 25 } 21 26
Note: See TracChangeset
for help on using the changeset viewer.