forked from johnny603/lux
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathresult.html
More file actions
34 lines (31 loc) · 1.03 KB
/
Copy pathresult.html
File metadata and controls
34 lines (31 loc) · 1.03 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
{% extends "base.html" %}
{% block content %}
<section class="panel">
{% if result.ok %}
<div class="status ok">
<h2>Submission accepted</h2>
<p>Your attempt was processed successfully.</p>
</div>
{% else %}
<div class="status error">
<h2>Submission rejected</h2>
<p>{{ result.error or "The puzzle validation failed." }}</p>
</div>
{% endif %}
<div class="grid two">
<div class="card">
<strong>{{ puzzle.title }}</strong>
<span class="muted">{{ puzzle.category }} · {{ puzzle.difficulty|title }}</span>
<span class="muted">Validator: {{ puzzle.validator }}</span>
</div>
<div class="card">
<strong>Status code</strong>
<span class="muted">{{ status }}</span>
</div>
</div>
<div style="margin-top:16px;">
<a class="button" href="/puzzles/{{ puzzle.id }}">Back to puzzle</a>
<a class="button secondary" href="/web" style="margin-left:8px;">Back to browser</a>
</div>
</section>
{% endblock %}