layout.html
This file
Path
examples/minitwit/templates/layout.html
32 lines · 1015 bytes · HTML
Last changed by
Not known.
History of this fileTake it
The walk stopped after 200 commits: lines older than 22af78a point at it.
Removed outdated sentence in the testing docsArmin Ronacherbefore adoption22af78a
lines 1–32why, one step back1<!doctype html>2<title>{% block title %}Welcome{% endblock %} | MiniTwit</title>3<link rel=stylesheet type=text/css href="{{ url_for('static', filename='style.css') }}">4<div class=page>5 <h1>MiniTwit</h1>6 <div class=navigation>7 {% if g.user %}8 <a href="{{ url_for('timeline') }}">my timeline</a> |9 <a href="{{ url_for('public_timeline') }}">public timeline</a> |10 <a href="{{ url_for('logout') }}">sign out [{{ g.user.username }}]</a>11 {% else %}12 <a href="{{ url_for('public_timeline') }}">public timeline</a> |13 <a href="{{ url_for('register') }}">sign up</a> |14 <a href="{{ url_for('login') }}">sign in</a>15 {% endif %}16 </div>17 {% with flashes = get_flashed_messages() %}18 {% if flashes %}19 <ul class=flashes>20 {% for message in flashes %}21 <li>{{ message }}22 {% endfor %}23 </ul>24 {% endif %}25 {% endwith %}26 <div class=body>27 {% block body %}{% endblock %}28 </div>29 <div class=footer>30 MiniTwit — A Flask Application31 </div>32</div>