aboutsummaryrefslogtreecommitdiff
blob: 273a5d37ce0042de6a36b44b6e19c4b430e1d3a6 (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
<!doctype html>
<head>
<title>{% block title %}Welcome{% endblock %} | Grumpy</title>
</head>
{% if g.user and g.user.regtoken %}
<span class="warning">
Warning: this user account has not yet been confirmed.<br />
Until the account has been confirmed, You won't receive
notifications and cannot add packages to your watch list.
{# TODO: provide link to "request new token" #}
</span>
{% endif %}
<div class=menu>
  <ul>
  {% if g.user %}
    <li><a href="{{ url_for('logout') }}">Log out</a></li>
  {% else %}
    <li><a href="{{ url_for('login') }}">Login</a></li>
  {% endif %}
  </ul>
</div>
<div class=page>
{% with flashes = get_flashed_messages() %}
  {% if flashes %}
    <ul class=flashes>
      {% for message in flashes %}
        <li>{{ message | e}}
      {% endfor %}
    </ul>
  {% endif %}
{% endwith %}
<div class=body>
{% block body %}{% endblock %}
</div>
<div class=foot>
Project Grumpy
</div>
</div>