Skip to content
Myr

layout.html

This file

Path

examples/minitwit/templates/layout.html

32 lines · 1015 bytes · HTML

Last changed by

Not known.

History of this file

Take it

The walk stopped after 200 commits: lines older than de3b6ab point at it.

Fixed a broken sentence about blueprints.Armin Ronacherbefore adoptionde3b6ab

lines 1–32why, one step back
1<!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 &mdash; A Flask Application31 </div>32</div>