blob: d626c45ac7ec19eabea9783d267a17c51836378a (
plain)
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
63
|
<!DOCTYPE html>
<html lang="en">
<head>
{% block head %}
<link rel="stylesheet" href="/main.css"/>
<link rel="stylesheet" type="text/css" href="/comment_section.css">
<link rel="stylesheet" type="text/css" href="/pygmentize_code_highlight.css">
<title>{% block title_prefix %}{% endblock %}{{title}}</title>
<link rel="icon" type="image/x-icon" href="https://node5.net/static/dmg_01.png">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
{% endblock %}
</head>
<body>
<div id="root-container">
<a id="logo" href="/">
<h1 class="inline">{{ title }}</h1>
</a><span id="motd" class="grey inline">{{ motd }}</span>
{% block content %}
{% endblock %}
<hr>
<h2>Comments</h2>
<form action="/comment" method="post">
{{ insert_sql_pretty | safe }}
<input placeholder="Nickname (optional)" type="text" id="nickname" name="nickname" title="Your name"><code>, </code>
<input placeholder="Your website URL" type="text" id="visitor_url" name="visitor_url"
title="If you have a website too, leave the url here to show it off"><code>, </code>
<input placeholder="Means of contacting you" type="text" id="contact" name="contact"
title="If you wish for me to be able to contact you, leave e.g: a phone number email or anything here."><code>, </code>
<select name="show_contact" id="show_contact">
<option value="">--Show contact publicly--</option>
<option value="on">TRUE</option>
<option value="off">FALSE</option>
</select><code>, </code>
<select name="public" id="public">
<option value="">--Show comment publicly--</option>
<option value="on">TRUE</option>
<option value="off">FALSE</option>
</select><code>, </code>
<br>
<textarea placeholder="Type your comment here" rows="4" id="comment" required name="comment" id="comment"></textarea>
<code>);</code><br>
<input type="submit" id="post-comment" value="Post comment" /> <small class="grey">(Will await approval before becoming public)</small>
</form>
<br>
{{ comments_sql | safe }}
{% if comments and comments|length > 0 %}<pre id="comments">
<pre>{{ comments }}</pre>
</pre>{% else %}*No comments*{% endif %}
</div>
<div id="footer">
{% block footer %}
{% endblock %}
</div>
</body>
</html>
|