ccmdesign-archives / open-government-research-exchange

1 stars 3 forks source link

fix if statements in list view #6

Closed claudioccm closed 8 years ago

claudioccm commented 8 years ago
        <div class="e-result-taxonomy m-category">
          <p>Category</p>
          {% for cat in d.taxonomy.category %} <span class="m-{{cat}}">{{cat}}</span> {% endfor %}
        </div>
        {% endif %}

        {% if d.taxonomy.methodology %}
        <div class="e-result-taxonomy m-methodology">
          <p>Methodology</p>
          {% for met in d.taxonomy.methodology %} <span>{{met}}</span> {% endfor %}
        </div>
        {% endif %}

the array is TRUE, even if the items are empty