Ignore:
Timestamp:
May 4, 2011, 4:32:04 PM (7 years ago)
Author:
work@…
Message:
  • added minified css / js support
  • gdt up to 0.0.41 (minified)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/views/layouts/nimble.gsp

    r1708 r1810  
    55 <head>
    66  <title><g:layoutTitle default="Grails" /></title>
    7   <link rel="stylesheet" href="${resource(dir:'css',file:session.style+'.css')}" />
    8   <link rel="stylesheet" href="${resource(dir:'css',file:'login_panel.css')}" />
    9   <link rel="shortcut icon" href="${resource(dir:'images',file:'favicon.ico')}" type="image/x-icon" />
    10         <g:javascript library="jquery" plugin="jquery"/>
    11          <script type="text/javascript" src="${resource(dir: 'js', file: 'disableKeys.js')}"></script>
    12          <script type="text/javascript" src="${resource(dir: 'js', file: 'login_panel.js')}"></script>
    13          <script type="text/javascript" src="${resource(dir: 'js', file: 'topnav.js')}"></script>
    14 
    15         <nh:nimblecore/>
    16     <nh:nimbleui/>
    17         <nh:growl/>
    18 
    19     <script type="text/javascript">
    20       <njs:flashgrowl/>
    21     </script>
    22 
    23         <script type="text/javascript">var baseUrl = '${resource(dir: '')}';</script>
    24         <script src="${createLinkTo(dir: 'js', file: 'jquery-ui-1.8.7.custom.min.js')}" type="text/javascript"></script>
    25         <link rel="stylesheet" href="${createLinkTo(dir: 'css/cupertino', file: 'jquery-ui-1.8.7.custom.css')}"/>
    26          <link rel="stylesheet" href="${resource(dir:'css',file:'nimble.css')}"/>
    27 
    28         <g:layoutHead/>
    29 
    30 
     7         <g:javascript library="jquery" plugin="jquery"/>
     8         <link rel="shortcut icon" href="${resource(dir: 'images', file: 'favicon.ico')}" type="image/x-icon"/>
     9         <g:if env="development">
     10                 <link rel="stylesheet" href="${resource(dir: 'css', file: session.style + '.css')}"/>
     11                 <link rel="stylesheet" href="${resource(dir: 'css', file: 'login_panel.css')}"/>
     12                 <script type="text/javascript" src="${resource(dir: 'js', file: 'disableKeys.js')}"></script>
     13                 <script type="text/javascript" src="${resource(dir: 'js', file: 'login_panel.js')}"></script>
     14                 <script type="text/javascript" src="${resource(dir: 'js', file: 'topnav.js')}"></script>
     15         </g:if>
     16         <g:else>
     17                 <link rel="stylesheet" href="${resource(dir: 'css', file: session.style + '.min.css')}"/>
     18                 <link rel="stylesheet" href="${resource(dir: 'css', file: 'login_panel.min.css')}"/>
     19                 <script type="text/javascript" src="${resource(dir: 'js', file: 'disableKeys.min.js')}"></script>
     20                 <script type="text/javascript" src="${resource(dir: 'js', file: 'login_panel.min.js')}"></script>
     21                 <script type="text/javascript" src="${resource(dir: 'js', file: 'topnav.min.js')}"></script>
     22         </g:else>
     23         <nh:nimblecore/>
     24         <nh:nimbleui/>
     25         <nh:growl/>
     26         <script type="text/javascript">
     27                 <njs:flashgrowl/>
     28         </script>
     29         <script type="text/javascript">var baseUrl = '${resource(dir: '')}';</script>
     30         <script src="${createLinkTo(dir: 'js', file: 'jquery-ui-1.8.7.custom.min.js')}" type="text/javascript"></script>
     31         <link rel="stylesheet" href="${createLinkTo(dir: 'css/cupertino', file: 'jquery-ui-1.8.7.custom.css')}"/>
     32         <link rel="stylesheet" href="${resource(dir: 'css', file: 'nimble.css')}"/>
     33  <g:layoutHead/>
    3134 </head>
    3235
Note: See TracChangeset for help on using the changeset viewer.