Consolidate the views for Test Management

This commit is contained in:
AndyGrant committed 2020-03-01 23:56:27 -05:00
1 parent bc5740febf
commit 21f4ae3e25
7 files changed
+57 -177

No files matched your search

+1 -1
View File
@@ -2,7 +2,7 @@
<tr>
<td><a href="/user/{{test.author}}">{{test.author|slice:":6"}}</a></td>
<td>{{test.engine}}</td>
<td><a href="/viewTest/{{test.id}}">{{test.dev.name}}</a></td>
<td><a href="/test/{{test.id}}">{{test.dev.name}}</a></td>
<td class="textcenter"><a href="{{test|gitDiffLink}}">diff</a></td>
<td>{{test.timecontrol}}</td>
<td class='statblock {{test|testResultColour}}'><strong>{{test|shortStatBlock|linebreaksbr}}</strong></td>
+1 -1
View File
@@ -16,7 +16,7 @@
<tr>
<td>{{event.creation|date:'Y-m-d H:i:s'}}</td>
<td>{{event.author}}</td>
<td><a href="/viewTest/{{event.test.id}}">{{event.test.dev.name}}</a></td>
<td><a href="/test/{{event.test.id}}">{{event.test.dev.name}}</a></td>
<td>{{event.test.timecontrol}}</td>
<td>{{event.data}}</td>
</tr>
+1 -1
View File
@@ -22,7 +22,7 @@
<td>{{machine.owner}}</td>
<td>{{machine.osname}}</td>
<td>{{machine.updated|date:'Y-m-d H:i'}}</td>
<td> <a href="/viewTest/{{machine.workload.id}}">{{machine.workload.dev.name}}</a></td>
<td> <a href="/test/{{machine.workload.id}}">{{machine.workload.dev.name}}</a></td>
<td class="numeric">{{machine.threads}}</td>
<td class="numeric">{{machine.mnps|twoDigitPrecision}}</td>
</tr>
@@ -35,34 +35,34 @@
<!-- Approve Button: For Admins, or Cross-approvers -->
{% if not test.approved and profile.approver and profile.user.username != test.author %}
<a class="anchorbutton" id="approvebutton" href="/approveTest/{{test.id}}/">Approve</a>
<a class="anchorbutton" id="approvebutton" href="/test/{{test.id}}/APPROVE">Approve</a>
{% elif not test.approved and request.user.is_superuser %}
<a class="anchorbutton" id="approvebutton" href="/approveTest/{{test.id}}/">Approve</a>
<a class="anchorbutton" id="approvebutton" href="/test/{{test.id}}/APPROVE">Approve</a>
{% else %}
<a class="anchorbutton deadbutton">Approve</a>
{% endif %}
<!-- Restart Button: For Approvers or Test Authors of finished tests -->
{% if test.finished and profile.approver %}
<a class="anchorbutton" id="stopbutton" href="/restartTest/{{test.id}}/">Restart</a>
<a class="anchorbutton" id="stopbutton" href="/test/{{test.id}}/RESTART">Restart</a>
{% elif test.finished and profile.user.username == test.author %}
<a class="anchorbutton" id="stopbutton" href="/restartTest/{{test.id}}/">Restart</a>
<a class="anchorbutton" id="stopbutton" href="/test/{{test.id}}/RESTART">Restart</a>
{% elif test.finished %}
<a class="anchorbutton deadbutton">Restart</a>
{% endif %}
<!-- Stop Button: For Approvers or Test Authors of active tests -->
{% if not test.finished and profile.approver %}
<a class="anchorbutton" id="restartbutton" href="/stopTest/{{test.id}}/">Stop</a>
<a class="anchorbutton" id="restartbutton" href="/test/{{test.id}}/STOP">Stop</a>
{% elif not test.finished and profile.user.username == test.author %}
<a class="anchorbutton" id="restartbutton" href="/stopTest/{{test.id}}/">Stop</a>
<a class="anchorbutton" id="restartbutton" href="/test/{{test.id}}/STOP">Stop</a>
{% elif not test.finished %}
<a class="anchorbutton deadbutton">Stop</a>
{% endif %}
<!-- Delete Button: For Approvers or Test Authors -->
{% if profile.approver or profile.user.username == test.author %}
<a class="anchorbutton" id="deletebutton" href="/deleteTest/{{test.id}}/">Delete</a>
<a class="anchorbutton" id="deletebutton" href="/test/{{test.id}}/DELETE">Delete</a>
{% else %}
<a class="anchorbutton deadbutton">Delete</a>
{% endif %}
@@ -77,7 +77,7 @@
<!-- Forum to modify the Priority or Throughput -->
<form method="POST" action="/editTest/{{test.id}}/">
<form method="POST" action="/test/{{test.id}}/MODIFY">
{% csrf_token %}
@@ -105,7 +105,7 @@
<th>ID</th>
<th>USER</th>
<th>OS</th>
<th>Last Updated</th>
<th>UPDATED</th>
<th style="width: 60px">GAMES</th>
<th style="width: 60px">WON</th>
<th style="width: 60px">LOST</th>