Changeset 3696

Show
Ignore:
Timestamp:
05/19/08 14:00:32 (6 months ago)
Author:
k0s
Message:

add a test in the template to check for empty values; theres no point in writing a link that cant be seen and this also fixes for None values

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • autoqueryplugin/0.11/autoquery/templates/autoquery_ticket.html

    r3664 r3696  
    164164                      <py:when test="'rendered' in field">${field.rendered}</py:when> 
    165165                      <py:otherwise> 
     166                      <py:if test="ticket[field.name]"> 
    166167                        <a href="${query_link(field.name, ticket[field.name])}"> 
    167168                          ${ticket[field.name]} 
    168169                        </a> 
     170                        </py:if>                 
    169171                      </py:otherwise> 
    170172                    </py:choose>