]>
Commit | Line | Data |
---|---|---|
1 | <html> | |
2 | <head> | |
3 | {% if title %} | |
4 | <title>{{ title }} - Web Photo Portfolio</title> | |
5 | {% else %} | |
6 | <title>Welcome to Web Photo Portfolio</title> | |
7 | {% endif %} | |
8 | </head> | |
9 | <body> | |
10 | <div>WPP: <a href="/index">Home</a> | |
11 | {% if g.user.is_authenticated %} | |
12 | | <a href="{{ url_for('user', nickname=g.user.nickname) }}">Your Profile</a> | |
13 | | <a href="{{ url_for('logout') }}">Logout</a> | |
14 | {% endif %} | |
15 | </div> | |
16 | <hr /> | |
17 | {% with messages = get_flashed_messages() %} | |
18 | {% if messages %} | |
19 | <ul> | |
20 | {% for message in messages %} | |
21 | <li>{{ message }} </li> | |
22 | {% endfor %} | |
23 | </ul> | |
24 | {% endif %} | |
25 | {% endwith %} | |
26 | {% block content %}{% endblock %} | |
27 | </body> | |
28 | </html> | |
29 |