base.html
This file
Path
examples/tutorial/flaskr/templates/base.html
24 lines · 752 bytes · HTML
Last changed by
Not known.
History of this fileTake it
The walk stopped after 200 commits: lines older than 9d0b163 point at it.
release 1.0David Lordbefore adoption9d0b163
lines 1–24why, one step back1<!doctype html>2<title>{% block title %}{% endblock %} - Flaskr</title>3<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">4<nav>5 <h1><a href="{{ url_for('index') }}">Flaskr</a></h1>6 <ul>7 {% if g.user %}8 <li><span>{{ g.user['username'] }}</span>9 <li><a href="{{ url_for('auth.logout') }}">Log Out</a>10 {% else %}11 <li><a href="{{ url_for('auth.register') }}">Register</a>12 <li><a href="{{ url_for('auth.login') }}">Log In</a>13 {% endif %}14 </ul>15</nav>16<section class="content">17 <header>18 {% block header %}{% endblock %}19 </header>20 {% for message in get_flashed_messages() %}21 <div class="flash">{{ message }}</div>22 {% endfor %}23 {% block content %}{% endblock %}24</section>