Changeset 1125


Ignore:
Timestamp:
Nov 11, 2010, 4:05:03 PM (6 years ago)
Author:
business@…
Message:

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

File:
1 edited

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
Note: See TracChangeset for help on using the changeset viewer.