Changeset 1125

Show
Ignore:
Timestamp:
11-11-10 16:05:03 (3 years ago)
Author:
business@…
Message:

fix to avoid error message when trying to compare templates when none is present

Files:
1 modified

Legend:

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

    r1029 r1125  
    3232                <div class="templateEditorStep" id="step1_template"> 
    3333                        <h3>Select template</h3> 
    34                         <p>Showing templates for <b>${humanReadableEntity}</b> (<g:link controller="templateEditor" action="compare" params="${[entity: encryptedEntity] + extraparams}">compare</g:link>).</p> 
     34                        <p>Showing templates for <b>${humanReadableEntity}</b><g:if test="${templates.size() > 0 }"> (<g:link controller="templateEditor" action="compare" params="${[entity: encryptedEntity] + extraparams}">compare</g:link>)</g:if>.</p> 
    3535                        <p>Please select a template to edit or create a new template</p> 
    3636