Skip to content

Commit

Permalink
finish multiple response conditions work - response conditions attach…
Browse files Browse the repository at this point in the history
…ed to a test now displayed as a list in /browse, close #24
  • Loading branch information
emanuil-tolev committed Jun 12, 2012
1 parent 7150f3d commit acdf0c4
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions idfind/templates/browse.html
Expand Up @@ -85,14 +85,20 @@ <h3>{{thing['_source']['name']}} <small><a title="Copy this - direct link to thi
</tr>
{% endif %}

{% if thing['_source']['resptest'] %}
{% if thing['_source']['resptests'] %}
<tr>
<td>Response condition</td>
<td>{{thing['_source']['resptest_type']}} {{thing['_source']['resptest_cond']}} {{thing['_source']['resptest']}}</td>
<td>Response conditions</td>
<td>
<ul style="margin-bottom: 0;">
{% for rc in thing['_source']['resptests'] %}
<li>{{rc['type']}} {{rc['cond']}} "{{rc['str']}}"</li>
{% endfor %}
</ul>
</td>
</tr>
{% endif %}

{% if thing['_source']['useful_links'][0] %}
{% if thing['_source']['useful_links'] %}
<tr>
<td>Learn more</td>
<td>
Expand Down

0 comments on commit acdf0c4

Please sign in to comment.