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

Last change on this file since 1371 was 1242, checked in by work@…, 10 years ago
  • added Facebook open graph tags
  • added Facebook like button to front page
  • Property svn:keywords set to Author Date Rev
File size: 543 bytes
Line 
1import dbnp.studycapturing.Study
2import dbnp.studycapturing.Template
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: 1242 $
15 * $Author: t.w.abma@umcutrecht.nl $
16 * $Date: 2010-12-09 12:58:36 +0000 (do, 09 dec 2010) $
17 */
18class HomeController {
19    def index = {
20            if (!Template.count()) {
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.