Changeset 1263 for trunk/grails-app/views/templateEditor/compare.gsp
- Timestamp:
- Dec 13, 2010, 8:29:59 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/views/templateEditor/compare.gsp
r1056 r1263 84 84 <% /* Length of long titles depends on the number of templates. 85 85 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(); 87 87 %> 88 88 <table id="compare_templates"> … … 106 106 <span class="longTitle"> 107 107 <g:if test="${currentTemplate.name.size() > numCharsLongTitle}"> 108 ${currentTemplate.name.substring(0, numCharsLongTitle - 3)}...108 ${currentTemplate.name.substring(0, numCharsLongTitle - 3)}... 109 109 </g:if> 110 110 <g:else>
Note: See TracChangeset
for help on using the changeset viewer.