File size: 2,963 Bytes
340cbde
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
        {% if title %}
        <title>{{ title }} - Yotter</title>
        {% else %}
        <title>Yotter</title>
        {% endif %}
        <meta name="viewport" content="width=device-width">
        <link rel="preload" as= "style" type= "text/css" href= "{{ url_for('static',filename='semantic/semantic.min.css') }}">
        <link rel="stylesheet" type= "text/css" href="{{ url_for('static',filename='styles.css') }}">
        <link rel="icon" href="{{ url_for('static',filename='favicons/favicon.ico') }}">

        <link rel="stylesheet"href= "{{ url_for('static',filename='semantic/semantic.min.css') }}">
    </head>
    <body>
        {% if config.maintenance_mode %}
            <div class="ui info message">
                <div class="header">
                    Server under maintenance.
                </div>
            </div>
        {% endif %}
        
        <div class="ui icon menu overflow-auto">
            <a href="{{ url_for('index') }}"><div class="item">
                <img alt="Yotter simple logo" src="{{ url_for('static',filename='img/logo_simple.png') }}">
            </div></a>
            {% if current_user.is_anonymous %}
            <a href="{{ url_for('login') }}" class="item">Login</a>
            {% else %}
                <a href="{{ url_for('twitter') }}" class="twitter item"><i class="twitter icon"></i></a>
                <a href="{{ url_for('search') }}" class="twitter item"><i class="search icon"></i></a>
                <a href="{{ url_for('saved') }}" class="twitter item"><i class="bookmark icon"></i></a>
                <a href="{{ url_for('youtube') }}" class="youtube item"><i class="youtube icon"></i></a>
                <a href="{{ url_for('ytsearch') }}" class="youtube item"><i class="search icon"></i></a>
                <div class="right menu">
                    <a href="{{ url_for('settings') }}" class="item"><i class="cog icon"></i></a>
                    <a href="{{ url_for('logout') }}" class="item"><i class="sign-out icon"></i></a>
                </div>
            {% endif %}
        </div>

        {% with messages = get_flashed_messages() %}
        {% if messages %}
            <div class="text centered container ui">
                <div class="ui info message">
                    <div class="header">
                        Information
                    </div>
                    <ul class="list">
                        {% for message in messages %}
                            <li>{{ message }}</li>
                        {% endfor %}
                    </ul>
                </div>
            </div>
        {% endif %}
        {% endwith %}
        
        {% block content %}{% endblock %}
    </body>
</html>