base.html 2.59 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="icon" type="image/png" href="one/static/favicon.png">
Dányi Bence committed
10
    <link rel="stylesheet/less" href="/static/style.less" />
11 12
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <script src="/static/jquery.min.js"></script>
Dányi Bence committed
13
    <script src="/static/less.min.js"></script>
Dányi Bence committed
14 15
    <script src="/static/knockout.min.js"></script>
    <script type="text/javascript" src="/static/cloud.js"></script>
Dudás Ádám committed
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

    {{ form.media }}
    {% block js %}{% endblock %}
</head>

<body>
    <div id="header">
        {% block login %}
            <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-US/">In English</a>.
               {% else %}
               <a href="/language/hu/">Magyarul</a>.
                   {% if autolang %}
                   <p style="position: absolute; top: 40px; right: 1em;" class="triangle-border top">Böngészője kifejezetten angol tartalmat kért.<br/>A <a href="/language/hu/">magyar változat</a> részletesebb és frissebb!</p>
                   {% endif %}
               {% endif %}-->
               </p>
           </div>
        {% endblock %}
        {% block header %}
            {% block header_title %}
Dányi Bence committed
47
            <h1><a href="/">IK Cloud <span style="font-size: 21px">&beta;</span></a></h1>
Dudás Ádám committed
48 49 50 51 52 53 54 55 56 57 58 59 60 61
            {% endblock %}
        {% endblock %}
    </div>

    {% block messages %}
        {% if messages %}
        <ul class="messagelist">{% for message in messages %}
          <li{% if message.tags %} class="{{ message.tags }}"{% endif %}>{{ message }}</li>
        {% endfor %}</ul>
        {% endif %}
    {% endblock messages %}

    <div id="content">
        {% block content %}{% endblock %}
Dányi Bence committed
62
        <div class="clear"></div>
Dudás Ádám committed
63
    </div>
Bence Dnyi committed
64 65 66
    <div id="modal" style="display: none">
        <div id="shadow"></div>
        <div id="modal-container">
Dányi Bence committed
67

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