-
Notifications
You must be signed in to change notification settings - Fork 81
Expand file tree
/
Copy pathtest_view.html
More file actions
62 lines (61 loc) · 3.16 KB
/
test_view.html
File metadata and controls
62 lines (61 loc) · 3.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
{% extends "base.html" %}
{% block title %}Regression test {{ test.id }} {{ super() }}{% endblock %}
{% block body %}
{{ super() }}
<br />
<div class="grid-x">
<div class="column medium-9">
<h1>Regression test {{ test.id }}</h1>
<p>Sample: <a href="{{ url_for('sample.sample_by_id', sample_id=test.sample_id) }}">Sample #{{ test.sample.id }}</a></p>
<p>Command: {{ test.command }}</p>
<p>Input type: {{ test.input_type.description }}</p>
<p>Output type: {{ test.output_type.description }}</p>
<p>Description: {{ test.description or "No description" }}</p>
<p>Status:
{% if test.never_worked %}
<span class="label secondary">Never worked</span>
<span style="color: #999; font-size: 0.85em;">(This test has never produced correct output on any CCExtractor version)</span>
{% else %}
<span class="label success">Normal</span>
<span style="color: #999; font-size: 0.85em;">(This test has not been flagged as never having worked)</span>
{% endif %}
</p>
<p id="tags" href="#tags">
{% set sample = test.sample %}
Tags of sample:
{% if sample.tags|length %}
{% for tag in sample.tags %}
<span class="tag" title="{{tag.description or tag.name}}">{{ tag.name }}</span>
{% endfor %}
{% else %}
No tags yet.
{% endif %}
{% if user.is_admin %}
<a href="{{ url_for("sample.edit_sample", sample_id=sample.id) }}" title="Edit sample"><i class="fa fa-edit"></i></a>
{% endif %}
</p>
<p>Output files:</p>
<ul>
{% for i in range(test.output_files|length) %}
<li><p> Output File {{i+1}}:</p>
<ul>
<li><a target="_blank" href="{{ url_for('regression.test_result_file', regression_test_output_id=test.output_files[i].id) }}">{{ test.output_files[i].filename_correct }} (original)</a></li>
{% for output_file in test.output_files[i].multiple_files %}
<li><a target="_blank" href="{{ url_for('regression.multiple_test_result_file', regression_test_output_id=output_file.id) }}">{{ output_file.file_hashes+output_file.output.correct_extension }} (variant)</a></li>
{% endfor %}
</ul>
</li>
{% endfor %}
</ul>
</div>
<div class="column medium-3">
{% if user is not none and user.has_role('contributor') %}
<h5>Regression tests</h5>
<ul class="no-bullet">
<li><i class="fa fa-plus-circle"></i> <a href="{{ url_for('.output_add', regression_id=test.id) }}">Add new Output file</a></li>
<li><i class="fa fa-minus-circle"></i> <a href="{{ url_for('.output_remove', regression_id=test.id) }}">Remove Output file</a></li>
</ul>
{% endif %}
</div>
</div>
{% endblock %}