~linaro-validation/lava-dashboard/next

« back to all changes in this revision

Viewing changes to dashboard_server/templates/dashboard_app/test_run_detail.html

  • Committer: Zygmunt Krynicki
  • Date: 2010-12-20 11:48:23 UTC
  • mto: This revision was merged to the branch mainline in revision 116.
  • Revision ID: zygmunt.krynicki@linaro.org-20101220114823-kd59m8bn0w32s3hq
Use images to represent test result outcome

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
 
44
44
 
45
45
{% block content %}
46
 
 
47
46
<table class="data">
48
47
  <tr>
 
48
    <th>#</th>
49
49
    <th>{% trans "Test case" %}</th>
50
 
    <th>{% trans "Test result" %}</th>
 
50
    <th>{% trans "Result" %}</th>
51
51
    <th>{% trans "Measurement" %}</th>
52
52
  </tr>
53
53
  {% for test_result in test_run.test_results.all %}
54
54
  <tr>
55
 
    <td width="35%">{{test_result.test_case}}</td>
56
 
    <td class="result-{{test_result.get_result_display}}">
57
 
    {{test_result.get_result_display|upper}}
 
55
    <td width="1%">{{ forloop.counter }}</td>
 
56
    <td>{{ test_result.test_case }}</td>
 
57
    <td>
 
58
      <img src="{{ MEDIA_URL }}assets/images/icon-{{ test_result.result_code }}.png" 
 
59
      alt="{{ test_result.get_result_display }}" width="16" height="16" />
 
60
      {{ test_result.get_result_display }}
58
61
    </td>
59
 
    <td>{{ test_result.measurement }} {{ test_result.units}}</td>
 
62
    {% if test_result.measurement %}
 
63
    <td>{{ test_result.measurement|default_if_none:"" }} {{ test_result.units }}</td>
 
64
    {% endif %}
60
65
  </tr>
61
66
  {% endfor %}
62
67
 </table>
63
 
 
64
68
{% endblock %}