Changeset 1119

Show
Ignore:
Timestamp:
11-11-10 13:39:58 (3 years ago)
Author:
work@…
Message:

- initial version of the setup assistant

Location:
trunk/grails-app
Files:
6 added
3 removed
4 modified

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     
  • trunk/grails-app/views/common/_topnav.gsp

    r1092 r1119  
    5353        <g:if env="development"> 
    5454                <li><g:link controller="query" action="index"><img src="${fam.icon(name: 'database_gear')}" alt="query database"/></g:link></li> 
    55                 <li> 
    56                         <a href="#"><img src="${fam.icon(name: 'application_form')}" alt="scaffolded controllers"/></a> 
    57                         <ul class="subnav"><g:each var="c" in="${grailsApplication.controllerClasses}"> 
    58                                 <li><g:link controller="${c.logicalPropertyName}">${c.fullName}</g:link></li></g:each> 
    59                         </ul> 
    60                 </li> 
    6155        </g:if> 
    6256        <g:if test="${session.pilot == true}"> 
  • trunk/grails-app/views/home/index.gsp

    r1080 r1119  
     1<%@ page import="dbnp.studycapturing.Template" %> 
    12<html> 
    23<head> 
     
    67<body> 
    78 
    8 <g:if env="development"> 
    9         <p> 
    10                 Welcome to GSCF version <b>${meta(name: 'app.version')}</b>. At this moment, there are ${studyCount} studies and ${userCount} users in the database. 
    11         </p> 
    12         <p> 
    13                 This application will facilitate systems biological research and collaboration between researchers at various locations. This application is a combined effort of the <a href="http://www.nugo.org/everyone">Nutrigenomics Organization (NuGO)</a> the <a href="http://www.metabolomicscentre.nl">Netherlands Metabolomics Centre (NMC)</a>, <a href="http://www.eurreca.org">European Micronutrient recommandations Aligned (Eurreca)</a>, the <a href="http://www.tno.nl">Netherlands Organization for Applied Scientific Research (TNO)</a> and the <a href="http://www.nbic.nl/">Netherlands Bioinformatics Centre (NBIC)</a>. The GSCF is part of the Nutritional Phenotype Database described by <a href="http://www.springerlink.com/content/1555-8932">van Ommen et al, 2010: The Nutritional Phenotype Database. Genes and Nutrition. DOI: 10.1007/s12263-010-0167-9</a>. 
    14  
    15                 This study capturing module can be easily linked to assay specific modules and therefore can be reused for new technologies. This application is built for the easy input/storage and retrieval of studies. Studies can be stored with high detail and the type for information being stored can be field (e.g. human, mouse, plant) specific. Complex designs like studies with multiple doses, sampling time points and challenge tests, can be stored in this system. 
    16                 Studies will only be accessible for people that are specified by the study owner. 
    17         </p> 
    18         <p><n:isNotLoggedIn> 
    19                 To be able to create, view or search studies, please log on or register at the right top corner of this page. 
    20                                 NB: For this (test) version it is not required to login, but if you login as administrator ( admin / admiN123! ) or user ( user / useR123! ) you can test user functionality. 
    21         </n:isNotLoggedIn></p> 
    22         <g:oauthLink consumer='myExperiment' returnTo="[controller: 'home', action: 'index']">Authorize</g:oauthLink> 
    23         <g:hasOauthError> 
    24                 <div class="errors"> 
    25                         <g:renderOauthError/> 
    26                 </div> 
    27         </g:hasOauthError> 
    28 </g:if> 
    299</body> 
    3010</html> 
  • trunk/grails-app/views/layouts/main.gsp

    r1080 r1119  
    3030        </div> 
    3131        <img src="${resource(dir: 'images', file: 'beta-stamp.png')}" alt="beta"> 
    32         <g:if env="development"><g:render template="/common/feedback"/></g:if> 
    3332</div> 
    3433</body>