Ignore:
Timestamp:
Dec 13, 2010, 8:29:59 PM (9 years ago)
Author:
robert@…
Message:
  • Solved bug in exporting templates with null values
  • Solved bug in comparing templates
  • Added export and import links to the menu again
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/views/templateEditor/compare.gsp

    r1056 r1263  
    8484        <% /* Length of long titles depends on the number of templates.
    8585                  We've got about 90 characters to show in total */
    86                   def numCharsLongTitle = Math.floor( 90 / templates.size() );
     86                  def numCharsLongTitle = Math.floor( 90 / templates.size() ).intValue();
    8787        %>
    8888        <table id="compare_templates">
     
    106106                          <span class="longTitle">
    107107                                <g:if test="${currentTemplate.name.size() > numCharsLongTitle}">
    108                                   ${currentTemplate.name.substring(0,numCharsLongTitle - 3)}...
     108                                  ${currentTemplate.name.substring(0, numCharsLongTitle - 3)}...
    109109                                </g:if>
    110110                                <g:else>
Note: See TracChangeset for help on using the changeset viewer.