survey/templates/panel/campaigns/results.html

73 lines
2 KiB
HTML
Raw Normal View History

2023-01-26 20:58:32 +05:30
{% extends 'base' %}
{% block nav %}
{% include "panel_nav" %}
{% endblock nav %}
{% block body %}
<body class="panel__body">
<main class="panel__container">
<ul>
<h2>Filters</h2>
{% if payload.js_only %}
<ol><a href="{{ payload.js_only }}">JavaScript polyfil only</a></ol>
{% endif %}
{% if payload.wasm_only %}
<ol><a href="{{ payload.wasm_only }}">WASM only</a></ol>
{% endif %}
{% if payload.all_benches %}
<ol><a href="{{ payload.all_benches }}">All Benchmarks</a></ol>
{% endif %}
</ul>
2023-01-26 20:58:32 +05:30
<table>
<thead>
<tr>
<th>Submission ID</th>
2023-02-01 15:27:26 +05:30
<th>Time (UTC)</th>
2023-01-26 20:58:32 +05:30
<th>User ID</th>
<th>Device make (user provided)</th>
<th>Device make (detected)</th>
<th>Threads</th>
2023-02-01 18:19:06 +05:30
<th>Benchmark Type</th>
2023-01-26 20:58:32 +05:30
<th>Benches</th>
</tr>
</thead>
<tbody>
{% for sub in payload.submissions %}
<tr>
2023-02-01 15:27:26 +05:30
<td>{{ sub.id }}</td>
<td>{{ sub.submitted_at | date(format="%Y-%m-%d %H:%M", timezone="GMT") }}</td>
<td>{{ sub.user.id }}</td>
<td>{{ sub.device_user_provided }}</td>
<td>{{ sub.device_software_recognised }}</td>
<td>{{ sub.threads }}</td>
2023-02-01 18:19:06 +05:30
<td>{{ sub.submission_type }}</td>
2023-02-01 15:27:26 +05:30
<td>
2023-01-26 20:58:32 +05:30
<table>
<thead>
<th>Difficulty</th>
<th>Duration</th>
</thead>
<tbody>
{% for b in sub.benches %}
<tr>
<td> {{ b.difficulty }} </td>
<td> {{ b.duration }} </td>
</tr>
{% endfor %}
</tbody>
</table>
2023-02-01 18:19:06 +05:30
</td>
2023-01-26 20:58:32 +05:30
</tr>
{% endfor %}
</tbody>
</table>
{% if payload.next_page %}
<a href="{{payload.next_page}}">Next ></a>
{% endif %}
2023-01-26 20:58:32 +05:30
</main>
</body>
{% endblock body %}