diff options
| author | Mitsuo Tokumori <rtokumori@pucp.edu.pe> | 2023-10-29 07:41:04 -0500 |
|---|---|---|
| committer | Mitsuo Tokumori <rtokumori@pucp.edu.pe> | 2023-10-29 07:41:04 -0500 |
| commit | 43f9d78f8c00e13732b809519f0529ac293fd5ab (patch) | |
| tree | d9779a6d4b511dd27cfe80b3f8d0ad2e5ef5d7da /ustayml/templates/base.html | |
| parent | de8b3d760a37fc54645a2588b062f85963146070 (diff) | |
Rename to ustayml (u-stayML)
Diffstat (limited to 'ustayml/templates/base.html')
| -rw-r--r-- | ustayml/templates/base.html | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/ustayml/templates/base.html b/ustayml/templates/base.html new file mode 100644 index 0000000..1b2c384 --- /dev/null +++ b/ustayml/templates/base.html @@ -0,0 +1,25 @@ +<!doctype html> +<title>{% block title %}{% endblock %} - u-stayML</title> +<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}"> +<link rel="shortcut icon" href="{{ url_for('static', filename='favicon.ico') }}"> +<nav> + <h1><a href="{{ url_for('index') }}">u-stayML</a></h1> + <ul> + {% if g.user %} + <li><span>{{ g.user['username'] }}</span> + <li><a href="{{ url_for('auth.logout') }}">Log Out</a> + {% else %} + <li><a href="{{ url_for('auth.register') }}">Register</a> + <li><a href="{{ url_for('auth.login') }}">Log In</a> + {% endif %} + </ul> +</nav> +<section class="content"> + <header> + {% block header %}{% endblock %} + </header> + {% for message in get_flashed_messages() %} + <div class="flash">{{ message }}</div> + {% endfor %} + {% block content %}{% endblock %} +</section>
\ No newline at end of file |
