base.html 2.49 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>
Őry Máté committed
13
    <script type="text/javascript" src="{% url django.views.i18n.javascript_catalog %}"></script>
14
    <script type="text/javascript">
15
      /*less = {
16
        env: 'developement'
17
      };*/
18
    </script>
Dányi Bence committed
19
    <script src="/static/less.min.js"></script>
Dányi Bence committed
20 21
    <script src="/static/knockout.min.js"></script>
    <script type="text/javascript" src="/static/cloud.js"></script>
Dudás Ádám committed
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39

    {{ 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 %}
40 41
               {% if lang == 'hu' %}
               <a href="/language/en/">In English</a>.
Dudás Ádám committed
42 43
               {% else %}
               <a href="/language/hu/">Magyarul</a>.
44
               {% endif %}
Dudás Ádám committed
45 46 47 48 49
               </p>
           </div>
        {% endblock %}
        {% block header %}
            {% block header_title %}
Dányi Bence committed
50
            <h1><a href="/">IK Cloud <span style="font-size: 21px">&beta;</span></a></h1>
Dudás Ádám committed
51 52 53 54 55 56 57 58 59 60 61 62 63 64
            {% 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
65
        <div class="clear"></div>
Dudás Ádám committed
66
    </div>
Bence Dnyi committed
67 68 69
    <div id="modal" style="display: none">
        <div id="shadow"></div>
        <div id="modal-container">
Dányi Bence committed
70

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