Changeset 1508 in main for trunk


Ignore:
Timestamp:
07/18/12 16:08:16 (9 years ago)
Author:
pcosquer
Message:

template: use "yesno" instead of "if else"

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/openPLM/templates/blocks/search.html

    r1219 r1508  
    1414    {% trans "Results for link creation:" %} 
    1515{% endif %} 
    16 <div class="Result" link_creation= 
    17     {% if link_creation %} 
    18     "true"  
    19     {% else %} 
    20     "false"  
    21     {% endif %}  
    22      navigate= 
    23     {% if navigate_bool %} 
    24     "true" 
    25     {% else %} 
    26     "false" 
    27     {% endif %} > 
     16<div class="Result" link_creation="{{link_creation|yesno:"true,false"}}" 
     17    navigate="{{navigate_bool|yesno:"true,false"}}"> 
    2818    {% for result in results %} 
    2919 
Note: See TracChangeset for help on using the changeset viewer.