Ignore:
Timestamp:
Mar 4, 2011, 4:28:45 PM (10 years ago)
Author:
work@…
Message:
  • fixing remaining test issues
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/views/home/index.gsp

    r1586 r1590  
    55        <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."/>
    66        <meta name="layout" content="main"/>
    7         <script type="text/javascript" src="${resource(dir: 'js', file: 'highcharts.js')}"></script>
     7        <g:if test="${showstats}"><script type="text/javascript" src="${resource(dir: 'js', file: 'highcharts.js')}"></script></g:if>
    88        <script type="text/javascript" src="${resource(dir: 'js', file: 'jquery.ui.autocomplete.html.js', plugin: 'gdt')}"></script>
    99        <script type="text/javascript">
    10                 Highcharts.theme = { colors: ['#4572A7'] };
    11                 var highchartsOptions = Highcharts.getOptions();
    12                 var studiesPieChart, dailyStatistics;
    13 
    1410                $(document).ready(function() {
     11<g:if test="${showstats}">
     12                        Highcharts.theme = { colors: ['#4572A7'] };
     13                        var highchartsOptions = Highcharts.getOptions();
     14                        var studiesPieChart, dailyStatistics;
     15
    1516                        studiesPieChart = new Highcharts.Chart({
    1617                                chart: {
     
    186187                        });
    187188                        </g:if>
    188 
     189</g:if>
    189190                        $("#search_term").autocomplete({
    190191                                source: function(request, response) {
     
    319320</div>
    320321
    321 
     322<g:if test="${showstats}">
    322323<div style="clear:both;display:block;padding-top:10px;">
    323324        <h1>Usage Statistics</h1>
     
    327328        </div>
    328329</div>
     330</g:if>
    329331
    330332</body>
Note: See TracChangeset for help on using the changeset viewer.