base.html 2.48 KB
Newer Older
Dudás Ádám committed
1 2 3 4 5 6
<!DOCTYPE html>
{% load i18n %}
{% get_current_language as lang %}
<html lang="{{lang}}">
<head>
    <title>{% block title %}IK Cloud{% endblock %}</title>
Őry Máté committed
7
    <link href="https://fonts.googleapis.com/css?family=Titillium+Web&amp;subset=latin,latin-ext" rel="stylesheet" type="text/css">
Dudás Ádám committed
8
    <link rel="icon" type="image/png" href="/static/favicon.png" />
9
    <link rel="stylesheet/less" href="/static/style/style.less" />
10
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
11
    <script src="/static/script/jquery.min.js"></script>
Őry Máté committed
12
    <script type="text/javascript" src="{% url django.views.i18n.javascript_catalog %}"></script>
13
    <script type="text/javascript">
14
        //window.localStorage.clear();
15
        var current_user={{user.id}};
16
    </script>
17 18
    <script src="/static/script/less.min.js"></script>
    <script src="/static/script/knockout.min.js"></script>
Dányi Bence committed
19 20
    <script type="text/javascript" src="/static/script/util.js"></script>
    <script type="text/javascript" src="/static/script/store.js"></script>
21
    <script type="text/javascript" src="/static/script/cloud.js"></script>
Dudás Ádám committed
22 23 24 25 26 27
    {{ form.media }}
    {% block js %}{% endblock %}
</head>
<body>
    <div id="header">
        {% block login %}
Dányi Bence committed
28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
        <div id="loginblock"><p>
            {% if user.is_authenticated %}
            Bejelentkezve: {{ user.username }}.
            <a href="/logout/">Kijelentkezés</a>.
            {% if user.is_staff %}
            <a href="/admin/">Admin</a>.
            {% endif %}
            {% else %}
            <a href="/login/">Bejelentkezés</a>.
            {% endif %}
            {% if lang == 'hu' %}
            <a href="/language/en/">In English</a>.
            {% else %}
            <a href="/language/hu/">Magyarul</a>.
            {% endif %}
            </p>
        </div>
Dudás Ádám committed
45 46
        {% endblock %}
        {% block header %}
Dányi Bence committed
47 48 49
        {% block header_title %}
        <h1><a href="/">IK Cloud</a></h1>
        {% endblock %}
Dudás Ádám committed
50 51 52
        {% endblock %}
    </div>
    {% block messages %}
Dányi Bence committed
53 54 55 56 57 58 59
    {% if messages %}
    <ul class="messagelist">
    {% for message in messages %}
        <li{% if message.tags %} class="{{ message.tags }}"{% endif %}>{{ message }}</li>
    {% endfor %}
    </ul>
    {% endif %}
Dudás Ádám committed
60 61 62
    {% endblock messages %}
    <div id="content">
        {% block content %}{% endblock %}
Dányi Bence committed
63
        <div class="clear"></div>
Dudás Ádám committed
64
    </div>
Bence Dnyi committed
65 66 67
    <div id="modal" style="display: none">
        <div id="shadow"></div>
        <div id="modal-container">
Dányi Bence committed
68

Bence Dnyi committed
69 70
        </div>
    </div>
Dudás Ádám committed
71 72
</body>
</html>