Skip to content

Commit

Permalink
Merge report/caseruns_table.html with reports/caseruns.html
Browse files Browse the repository at this point in the history
these two always go together and there's no need to split them
apart and include one from the other
  • Loading branch information
atodorov committed Jul 2, 2018
1 parent d26a196 commit 5956e8d
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 57 deletions.
55 changes: 54 additions & 1 deletion tcms/templates/report/caseruns.html
Expand Up @@ -19,7 +19,60 @@
{% else %}
<div>
<h3>caseruns - {{ test_case_runs_count }}</h3>
{% include "report/caseruns_table.html" %}
<table class="list" id="id_table_cases" cellspacing="0" cellspan="0">
<thead>
<tr>
<th class="widthID">Case Run ID</th>
<th class="widthID">Case ID</th>
<th>Summary</th>
<th width="80">Tester</th>
<th width="80">Assignee</th>
<th width="150">Automated </th>
<th width="100">Category</th>
<th width="60">Priority</th>
<th width="50" style='text-align:center'>Status</th>
<th width="40">Sort</th>
</tr>
</thead>
<tbody>
{% for test_case_run, status_name, priority_value, tester, assignee in test_case_runs %}
<tr class="{% cycle 'odd' 'even' %} {% ifequal assignee.0 user.pk %} mine {%endifequal%}">
<td>
<a target="_blank" href="{% url "testruns-get" test_case_run.run.pk %}#caserun_{{ test_case_run.pk }}">#{{ test_case_run.pk }}</a>
</td>
<td "{{ test_case_run.case_id }}" class="case_title expandable">
<a href="{% url 'testcases-get' test_case_run.case_id %}?from_plan={{ test_case_run.run.plan_id }}">{{ test_case_run.case_id }}</a>
</td>
<td>
<a id="link_{{ forloop.counter }}" target="_blank" href="{% url 'testruns-get' test_case_run.run.pk %}?#caserun_{{ test_case_run.pk }}" title="Expand test case">{{ test_case_run.case.summary }}</a>
</td>
<td>
{% if tester.1 %}
<a target="_blank" href="{% url "tcms-profile" tester.1 %}" class="link_tested_by">{{ tester.1 }}</a>
{% else %}None{% endif %}
</td>
<td>
{% if assignee.1 %}
<a href="{% url "tcms-profile" assignee.1 %}" class="link_assignee">{{ assignee.1 }}</a>
{% else %}None{% endif %}
</td>
<td>{{ test_case_run.case.get_is_automated_status }}</td>
<td>{{ test_case_run.case.category }}</td>
<td>{{ priority_value }}</td>
<td class="expandable center">
<img border="0" alt="" class="icon_status btn_{{ status_name.lower }}" />
</td>
<td>
<span class="mark">{{ test_case_run.sortkey }}</span>
</td>
</tr>
{% empty %}
<tr>
<td colspan="10" align="center">No case run found</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
{% endif %}
</div>
Expand Down
56 changes: 0 additions & 56 deletions tcms/templates/report/caseruns_table.html

This file was deleted.

0 comments on commit 5956e8d

Please sign in to comment.