Changeset 29 for trunk/grails-app


Ignore:
Timestamp:
Oct 26, 2009, 2:00:46 PM (11 years ago)
Author:
duh
Message:
  • created configurable styles (handled in conf/BaseFilters.groovy)
  • moved all styles into a default style (css/default_style images/default_style)
Location:
trunk/grails-app
Files:
1 added
3 edited

Legend:

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

    r16 r29  
    1313 */
    1414class BootStrap {
    15      def init = { servletContext ->
     15     def init = { servletContext ->     
    1616         // check if we're in development
    1717         if (GrailsUtil.environment == GrailsApplication.ENV_DEVELOPMENT) {
  • trunk/grails-app/controllers/BaseController.groovy

    r15 r29  
    3535     * @void
    3636     */
    37     protected BaseController() {
     37    BaseController() {
    3838        // debug line for now
    3939        printf("instantiated %s\n",this.class.name);
     
    4545        this.scaffold = (GrailsUtil.environment == GrailsApplication.ENV_DEVELOPMENT && this.class.name != 'BaseController');
    4646    }
     47
    4748
    4849    /**
  • trunk/grails-app/views/layouts/main.gsp

    r26 r29  
    44 <head>
    55  <title><g:layoutTitle default="Grails" /></title>
    6   <link rel="stylesheet" href="${resource(dir:'css',file:'style.css')}" />
     6  <link rel="stylesheet" href="${resource(dir:'css',file:session.style+'.css')}" />
    77  <link rel="stylesheet" href="${resource(dir:'css',file:'login_panel.css')}" />
    88  <link rel="shortcut icon" href="${resource(dir:'images',file:'favicon.ico')}" type="image/x-icon" />
     
    2121   <div id="footer">
    2222     Copyright © 2008 - <g:formatDate format="yyyy" date="${new Date()}"/> NMC & NuGO. All rights reserved.
    23      <a href="?showSource=true">show page source</a></div>
     23     ( style: <%=session.style%>,
     24     <a href="?showSource=true">show page source</a>)</div>
    2425  </div>
    2526 </body>
Note: See TracChangeset for help on using the changeset viewer.