Add test colouring, table headers, other visuals
This commit is contained in:
1 parent
290b729325
commit
fc1c3af9f1
8 files changed
+78
-46
No files matched your search
@@ -6,9 +6,14 @@
|
||||
|
||||
{% block content %}
|
||||
<table>
|
||||
<tr>
|
||||
<th>Date</th>
|
||||
<th>User</th>
|
||||
<th>Action</th>
|
||||
</tr>
|
||||
{% for event in events %}
|
||||
<tr>
|
||||
<td style='text-align:left'>{{event.creation}}</td>
|
||||
<td style='text-align:left'>{{event.creation|date:'Y-m-d H:i:s'}}</td>
|
||||
<td style='text-align:left'>{{event.author}}</td>
|
||||
<td style='text-align:left'>{{event.data}}</td>
|
||||
</tr>
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in new issue
Block a user