Add test colouring, table headers, other visuals

This commit is contained in:
AndyGrant committed 2018-06-10 15:59:39 -04:00
1 parent 290b729325
commit fc1c3af9f1
8 files changed
+78 -46

No files matched your search

+23 -2
View File
@@ -8,6 +8,7 @@
<tr>
{% for test in pending %}
<tr>
<td>{{test.creation|date:'Y-m-d'}}</td>
<td><a href="/viewUser/{{test.author}}">{{test.author}}</a></td>
<td style="text-align:left"><a href="/viewTest/{{test.id}}">{{test.dev.name}}</a></td>
<td style="text-align"><a href="{{test|gitDiffLink}}">diff</a></td>
@@ -21,8 +22,18 @@
<h2>Active</h2>
<table>
{% for test in active %}
{% if active %}
<tr>
<th>Creation</th>
<th>Author</th>
<th>Test</th>
<th>Diff</th>
<th>Stats</th>
</tr>
{% endif %}
{% for test in active %}
<tr class="{{test|testResultColour}}">
<td>{{test.creation|date:'Y-m-d'}}</td>
<td><a href="/viewUser/{{test.author}}">{{test.author}}</a></td>
<td style="text-align:left"><a href="/viewTest/{{test.id}}">{{test.dev.name}}</a></td>
<td style="text-align:left"><a href="{{test|gitDiffLink}}">diff</a></td>
@@ -35,8 +46,18 @@
<h2>Finished</h2>
<table>
{% if completed %}
<tr>
<th>Creation</th>
<th>Author</th>
<th>Test</th>
<th>Diff</th>
<th>Stats</th>
</tr>
{% endif %}
{% for test in completed %}
<tr class="{{test.status}}">
<tr class="{{test|testResultColour}}">
<td>{{test.creation|date:'Y-m-d'}}</td>
<td><a href="/viewUser/{{test.author}}">{{test.author}}</a></td>
<td style="text-align:left"><a href="/viewTest/{{test.id}}">{{test.dev.name}}</a></td>
<td style="text-align:left"><a href="{{test|gitDiffLink}}">diff</a></td>