diff options
| author | stilbruch <stilbruch@protonmail.com> | 2022-03-23 13:26:24 -0500 |
|---|---|---|
| committer | stilbruch <stilbruch@protonmail.com> | 2022-03-23 13:26:24 -0500 |
| commit | 22ae557601258bde27611a18f2c2a0409bc4567d (patch) | |
| tree | 018d7fa2c65853f077d4529633c1de23ca1904cf /app/templates | |
| parent | c57ebef076438c83a0e408227341398249566ff1 (diff) | |
| download | Strengthy-22ae557601258bde27611a18f2c2a0409bc4567d.tar.xz Strengthy-22ae557601258bde27611a18f2c2a0409bc4567d.zip | |
Add logout page
Diffstat (limited to 'app/templates')
| -rw-r--r-- | app/templates/base.html | 10 | ||||
| -rw-r--r-- | app/templates/base/home.html | 1 | ||||
| -rw-r--r-- | app/templates/base/index.html | 1 |
3 files changed, 8 insertions, 4 deletions
diff --git a/app/templates/base.html b/app/templates/base.html index 3139dcd..c539baa 100644 --- a/app/templates/base.html +++ b/app/templates/base.html @@ -47,19 +47,21 @@ </div> </div> - <!-- TODO: change based on login state --> <div class="navbar-end"> <div class="navbar-item"> <div class="buttons"> - <a class="button is-primary" href="register"><strong>Sign up</strong></a> - <a class="button is-light" href="login">Log in</a> + {% if current_user.is_authenticated %} + <a class="button is-light" href="/logout">Log Out</a> + {% else %} + <a class="button is-primary" href="/register"><strong>Sign Up</strong></a> + <a class="button is-light" href="/login">Log In</a> + {% endif %} </div> </div> </div> </div> </nav> - <!-- Actual content --> {% block content %}{% endblock %} <!-- TODO: footer --> diff --git a/app/templates/base/home.html b/app/templates/base/home.html index 357a399..14dd441 100644 --- a/app/templates/base/home.html +++ b/app/templates/base/home.html @@ -1,4 +1,5 @@ {% extends 'base.html' %} {% block content %} + User Homepage {% endblock %} diff --git a/app/templates/base/index.html b/app/templates/base/index.html index 357a399..3e91518 100644 --- a/app/templates/base/index.html +++ b/app/templates/base/index.html @@ -1,4 +1,5 @@ {% extends 'base.html' %} {% block content %} + Index Page {% endblock %} |
