diff options
Diffstat (limited to 'templates/home.html')
| -rw-r--r-- | templates/home.html | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/templates/home.html b/templates/home.html new file mode 100644 index 0000000..d54d2b7 --- /dev/null +++ b/templates/home.html @@ -0,0 +1,31 @@ +<!DOCTYPE html> +<html> + <head> + <title>Photocosm - Home</title> + <link rel="stylesheet" href="{{ url_for('static', filename='css/navbar.css') }}"> + </head> + <body style="margin:0px"> + <div class="topnav"> + <a class="active" href="#home">Home</a> + {% if current_user.is_authenticated %} + <a href="/logout" class="split">Logout, {{current_user.name}}</a> + {% else %} + <a href="/login" class="split">Log In</a> + <a href="/signup" class="split">Sign Up</a> + {% endif %} + </div> + {% with messages = get_flashed_messages() %} + {% if messages %} + <div class="notification is-danger"> + {{ messages[0] }} + </div> + {% endif %} + {% endwith %} + <div style="margin-left:10%"> + <h2>Collections</h2> + {% for collection in collections %} + <a href="editor?collection={{ collection['id'] }}">{{ collection['id'] }}</a> <br> + {% endfor %} + </div> + </body> +</html>
\ No newline at end of file |
