Show
Ignore:
Timestamp:
04-05-11 16:32:04 (3 years ago)
Author:
work@…
Message:

- added minified css / js support
- gdt up to 0.0.41 (minified)

Files:
1 modified

Legend:

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

    r1772 r1810  
    99        <meta property="og:image" content="${resource(dir: 'images', file: 'facebookLike.png', absolute: true)}"/> 
    1010        <meta property="fb:admins" content="721482421"/> 
    11         <link rel="stylesheet" href="${resource(dir: 'css', file: 'default.css')}"/> 
    12         <link rel="stylesheet" href="${resource(dir: 'css', file: session.style + '.css')}"/> 
    13         <link rel="stylesheet" href="${resource(dir: 'css', file: 'login_panel.css')}"/> 
    1411        <link rel="shortcut icon" href="${resource(dir: 'images', file: 'favicon.ico')}" type="image/x-icon"/> 
    15         <g:javascript library="jquery" plugin="jquery"/>         
     12        <g:javascript library="jquery" plugin="jquery"/> 
    1613        <script type="text/javascript">var baseUrl = '${resource(dir: '')}';</script> 
    1714        <script src="${createLinkTo(dir: 'js', file: 'jquery-ui-1.8.7.custom.min.js')}" type="text/javascript"></script> 
    1815        <link rel="stylesheet" href="${createLinkTo(dir: 'css/cupertino', file: 'jquery-ui-1.8.7.custom.css')}"/> 
    1916        <g:if env="production"><script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script></g:if> 
     17        <g:if env="development"> 
     18                <link rel="stylesheet" href="${resource(dir: 'css', file: 'default.css')}"/> 
     19                <link rel="stylesheet" href="${resource(dir: 'css', file: session.style + '.css')}"/> 
     20                <link rel="stylesheet" href="${resource(dir: 'css', file: 'login_panel.css')}"/> 
     21                <script type="text/javascript" src="${resource(dir: 'js', file: 'disableKeys.js')}"></script> 
     22                <script type="text/javascript" src="${resource(dir: 'js', file: 'login_panel.js')}"></script> 
     23                <script type="text/javascript" src="${resource(dir: 'js', file: 'topnav.js')}"></script> 
     24                <link rel="stylesheet" href="${resource(dir: 'css/datatables', file: 'demo_table_jui.css')}"/> 
     25                <script type="text/javascript" src="${resource(dir: 'js', file: 'jquery.dataTables.min.js')}"></script> 
     26                <script type="text/javascript" src="${resource(dir: 'js', file: 'paginate.js')}"></script> 
     27        </g:if> 
     28        <g:else> 
     29                <link rel="stylesheet" href="${resource(dir: 'css', file: 'default.min.css')}"/> 
     30                <link rel="stylesheet" href="${resource(dir: 'css', file: session.style + '.min.css')}"/> 
     31                <link rel="stylesheet" href="${resource(dir: 'css', file: 'login_panel.min.css')}"/> 
     32                <script type="text/javascript" src="${resource(dir: 'js', file: 'disableKeys.min.js')}"></script> 
     33                <script type="text/javascript" src="${resource(dir: 'js', file: 'login_panel.min.js')}"></script> 
     34                <script type="text/javascript" src="${resource(dir: 'js', file: 'topnav.min.js')}"></script> 
     35                <link rel="stylesheet" href="${resource(dir: 'css/datatables', file: 'demo_table_jui.css')}"/> 
     36                <script type="text/javascript" src="${resource(dir: 'js', file: 'jquery.dataTables.min.js')}"></script> 
     37                <script type="text/javascript" src="${resource(dir: 'js', file: 'paginate.min.js')}"></script> 
     38        </g:else> 
    2039        <g:layoutHead/> 
    21         <script type="text/javascript" src="${resource(dir: 'js', file: 'disableKeys.js')}"></script> 
    22         <script type="text/javascript" src="${resource(dir: 'js', file: 'login_panel.js')}"></script> 
    23         <script type="text/javascript" src="${resource(dir: 'js', file: 'topnav.js')}"></script> 
    24         <!--<g:if env="development"><script type="text/javascript" src="${resource(dir: 'js', file: 'development.js')}"></script></g:if>//--> 
    25  
    26         <!--  Scripts for pagination using dataTables --> 
    27         <link rel="stylesheet" href="${resource(dir: 'css/datatables', file: 'demo_table_jui.css')}"/> 
    28         <script type="text/javascript" src="${resource(dir: 'js', file: 'jquery.dataTables.min.js')}"></script> 
    29         <script type="text/javascript" src="${resource(dir: 'js', file: 'paginate.js')}"></script> 
    30  
    3140</head> 
    3241<body>