summaryrefslogtreecommitdiff
path: root/templates/home.html
blob: d54d2b7fbbdbd58031966b81d367822ff8174c2a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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>