-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathview.html
61 lines (57 loc) · 2.16 KB
/
view.html
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
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>{{ name }}</title>
<meta name="description" content="">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
</head>
<body class="container">
<h1 {% if any_errors %}style="color: red"{% endif %}>{{ name }}</h1>
</br>
<h4> Good job tools, you made {{ num_items }} ideas</h4>
<hr>
{% for row, errors in rows %}
<div id="idea_{{loop.index0}}">
{% if errors %}
<h2 style="color: red">{% if row.title %}{{ row.title }}{% else %}NO TITLE{% endif %}</h2>
<h4 style="color: red">{% if row.desc %}{{ row.desc }}{% else %}NO DESCRIPTION{% endif %}</h4>
{% if row.details %}
<h5 style="color: red">Details</h5>
<ul style="color: red">
{% for detail in row.details %}<li>{{ detail }}</li>{% endfor %}
</ul>
{% endif %}
{% if row.comments %}
<h5 style="color: red">Comments</h5>
<ul style="color: red">
{% for comment in row.comments %}<li>{{ comment }}</li>{% endfor %}
</ul>
{% endif %}
<h5 style="color: red">YOU FUCKED UP:</h5>
<ul style="color: red">
{% for error in errors %}
<li>{{ error }}</li>
{% endfor %}
</ul>
{% else %}
<h2>{{ row.title }}</h2>
<h4>{{ row.desc }}</h4>
{% if row.details %}
<h5>Details</h5>
<ul>
{% for detail in row.details %}<li>{{ detail }}</li>{% endfor %}
</ul>
{% endif %}
{% if row.comments %}
<h5>Comments</h5>
<ul>
{% for comment in row.comments %}<li>{{ comment }}</li>{% endfor %}
</ul>
{% endif %}
{% endif %}
</div>
<hr>
{% endfor %}
</body>
</html>