about summary refs log tree commit diff
path: root/blog.node5.net/templates/base.html
blob: 474584c7bf04c849f8c23f54f7de4bb50f7f0972 (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
64
65
66
<!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">
    <link rel="stylesheet" type="text/css" href="/devicons.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>
    <br>

    <div id="content" class="container">
      {% block content %}
      {% endblock %}
    </div>

    <br>

    <div id="comments" class="container">
      <h2>Comments</h2>

      <form action="/comment" method="post">
            <input placeholder="Nickname (optional)" type="text" id="nickname" name="nickname" title="Your name">
            <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">
            <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.">
            <select name="show_contact" id="show_contact">
              <option value="">--Show contact publicly--</option>
              <option value="on">TRUE</option>
              <option value="off">FALSE</option>
            </select>
            <select name="public" id="public">
              <option value="">--Show comment publicly--</option>
              <option value="on">TRUE</option>
              <option value="off">FALSE</option>
            <br>
            <textarea placeholder="Type your comment here" rows="4" id="comment" required name="comment" id="comment"></textarea>
          <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>
<div id="footer">
    {% block footer %}
    {% endblock %}
</div>
</body>
</html>