diff options
author | ubq323 <ubq323> | 2021-06-02 17:02:09 +0000 |
---|---|---|
committer | ubq323 <ubq323> | 2021-06-02 17:02:09 +0000 |
commit | 10fb40ceaefa4c014bbc67d4b908af2163344f0c (patch) | |
tree | 5ebf840b88451e91b7c15134b569a80ad1da501a /apioforum/templates/base.html | |
parent | 282a2a1dd49d8c21402574e853ad231fe606dfbb (diff) |
view threads apparently
Diffstat (limited to 'apioforum/templates/base.html')
-rw-r--r-- | apioforum/templates/base.html | 39 |
1 files changed, 21 insertions, 18 deletions
diff --git a/apioforum/templates/base.html b/apioforum/templates/base.html index 28fd055..d4ecb54 100644 --- a/apioforum/templates/base.html +++ b/apioforum/templates/base.html @@ -4,26 +4,29 @@ <head> <title>{%block title %}{% endblock %}</title> <meta name="viewport" content="width=device-width, initial-scale=1"> + <link rel="stylesheet" href="/static/style.css"> </head> <body> - <nav> - <h1>apioforum</h1> - <ul> - {% if g.user %} - <li>{{ g.user }}</li> - <li><a href="{{ url_for('auth.logout') }}">logout</a></li> - {% else %} - <li><a href="{{ url_for('auth.login') }}">login</a></li> - <li><a href="{{ url_for('auth.register') }}">register</a></li> - {% endif %} - </ul> - </nav> - - {% block header %}{% endblock %} - {% for msg in get_flashed_messages() %} - <div class="flash">{{ msg }}</div> - {% endfor %} - {%block content %}{% endblock %} + <main> + <nav> + {% if g.user %} + <div class="logged-in-user">{{ g.user }}</div> + <a class="link-button logout" href="{{ url_for('auth.logout') }}">logout</a> + {% else %} + <a class="link-button login" href="{{ url_for('auth.login') }}">login</a> + <a class="link-button register" href="{{ url_for('auth.register') }}">register</a> + {% endif %} + </nav> + {% for msg in get_flashed_messages() %} + <div class="flashmsg">{{ msg }}</div> + {% endfor %} + + <div class="header"> + {% block header %}{% endblock %} + </div> + + {%block content %}{% endblock %} + </main> </body> </html> |