Changeset 1886

Show
Ignore:
Timestamp:
27-05-11 11:56:23 (3 years ago)
Author:
work@…
Message:

- resolves issue #412
- make application title configurable through externalized configuration, e.g:

application.title=NMC Data Support Platform

Location:
trunk/grails-app
Files:
5 modified

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/conf/Config.groovy

    r1859 r1886  
    146146// What is the class name of the parent entity 
    147147gdtImporter.parentEntityClassName = "dbnp.studycapturing.Study" 
     148 
     149// default application title 
     150application.title = "Generic Study Capture Framework" 
  • trunk/grails-app/i18n/messages.properties

    r1778 r1886  
    5555typeMismatch.java.math.BigInteger=Property {0} must be a valid number 
    5656 
     57# login creation error 
     58dbnp.authentication.RegisterUserCommand.username.blank.error.username=Username is required 
     59 
    5760# Generic error messages 
    5861nullable={0} is required and may not be left blank 
  • trunk/grails-app/views/common/_login_panel.gsp

    r1430 r1886  
    44                <div class="content clearfix"> 
    55                        <div class="left"> 
    6                                 <h1>Welcome to the Metabolomics Data Support Platform</h1> 
    7                                 <h2>version <b>${meta(name: 'app.version')}</b></h2> 
     6                                <h1>Welcome to the ${grailsApplication.config.application.title}</h1> 
     7                                <h2>Version <b>${meta(name: 'app.version')}, build #<g:meta name="app.build.svn.revision"/></b></h2> 
    88                                <p class="grey">Please use the forms on the right to either log in if you already have an account, or sign up if you think this data support platform suits your needs.</p> 
    99                                <g:if test="${flash.message}"><p class="red">${flash.message}</p></g:if> 
  • trunk/grails-app/views/home/index.gsp

    r1862 r1886  
    11<html> 
    22<head> 
    3         <title>Generic Study Capture Framework</title> 
    4         <meta property="og:title" content="Generic Study Capture Framework"/> 
    5         <meta property="og:description" content="A generic tool for planning scientific studies, and capturing study meta-data, integrating with analysis platform(s) / LIMS systems and searching relevant studies."/> 
    63        <meta name="layout" content="main"/> 
    74        <g:if test="${showstats}"><script type="text/javascript" src="${resource(dir: 'js', file: 'highcharts.js')}"></script></g:if> 
     
    319316                <h1>Introduction</h1> 
    320317                <p> 
    321                         The phenotype database (dbNP) is an application that can store any biological study. It contains 
     318                        ${grailsApplication.config.application.title} is an application that can store any biological study. It contains 
    322319                        templates which makes it possible to customize. 
    323320                </p> 
     
    328325                </p> 
    329326                <p> 
    330                         The application facilitates sharing of data within a research group or consortium, as the study owner can 
    331                         decide who can view or access the data. In addition, the application can stimulate collaborations by making 
    332                         study information publicly visible. New studies can be based on study data within the database, as 
    333                         standardized storage is stimulated by the system. 
     327                        ${grailsApplication.config.application.title} facilitates sharing of data within a research group or consortium, 
     328                        as the study owner can decide who can view or access the data. In addition, ${grailsApplication.config.application.title} 
     329                        can stimulate collaborations by making study information publicly visible. New studies can be based on study 
     330                        data within the database, as standardized storage is stimulated by the system. 
    334331                </p> 
    335332        </div> 
  • trunk/grails-app/views/layouts/main.gsp

    r1875 r1886  
    44<html xmlns="http://www.w3.org/1999/xhtml" lang="en-EN" xml:lang="en-EN"> 
    55<head> 
    6         <title><g:layoutTitle default="GSCF"/></title> 
     6        <title><g:layoutTitle default="${grailsApplication.config.application.title}"/></title> 
    77        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> 
     8        <meta property="og:title" content="${grailsApplication.config.application.title}"/> 
     9        <meta property="og:description" content="A generic tool for planning scientific studies, and capturing study meta-data, integrating with analysis platform(s) / LIMS systems and searching relevant studies."/> 
    810        <meta property="og:type" content="non_profit"/> 
    911        <meta property="og:image" content="${resource(dir: 'images', file: 'facebookLike.png', absolute: true)}"/>