base.html
4.09 KB
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
{% load staticfiles %}<!DOCTYPE HTML>
<html>
<head>
<link href='http://fonts.googleapis.com/css?family=Lato:400,400italic,700' rel='stylesheet' type='text/css'>
<title>{% block title %}{% endblock %}</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<link rel="shortcut icon" href="{% static 'forge.ico' %}"
type="image/x-icon"/>
<script type="text/javascript"
src="{% static 'js/lib/jquery-1.10.2.js' %}"></script>
<script type="text/javascript"
src="{% static 'js/lib/jquery.json-2.2.min.js' %}"></script>
<script type="text/javascript"
src="{% static 'js/lib/jquery-ui-1.11.4.custom.min.js' %}"></script>
<script type="text/javascript"
src="{% static 'js/lib/jquery.ui.datepicker-pl.js' %}"></script>
<script type="text/javascript"
src="{% static 'js/lib/jquery.multiselect.js' %}"></script>
<script type="text/javascript">
$.fn.multiselect2 = $.fn.multiselect;
</script>
<script type="text/javascript" src="{% url 'jsi18n' %}"></script>
{% load script jsonify %}
{% script %}
var $dj = {};
{% for name,var in js_vars.iteritems %}
$dj.{{ name }} = {{ var|jsonify }};
{% endfor %}
{% endscript %}
<link rel="stylesheet"
href="{% static 'css/lib/smoothness/jquery-ui-1.11.2.custom.css' %}"
type="text/css" media="screen" charset="utf-8"/>
<link rel="stylesheet" type="text/css"
href="{% static 'css/lib/jquery.multiselect.css' %}"/>
{% block extrahead-lib %}{% endblock %}
<script type="text/javascript"
src="{% static 'js/base-layout.js' %}"></script>
<script type="text/javascript" src="{% static 'js/common.js' %}"></script>
{% if paginer %}
<script type="text/javascript"
src="{% static 'js/paginer.js' %}"></script>
{% endif %}
<link rel="stylesheet" href="{% static 'css/general.css' %}" type="text/css"
media="screen" charset="utf-8"/>
<link rel="stylesheet" href="{% static 'css/inflection_table.css' %}"
type="text/css" media="screen" charset="utf-8"/>
{% block extrahead %}{% endblock %}
</head>
{% load i18n %}
<body>
<!-- Container -->
<!--div id="container"-->
<!-- Header -->
<div id="header">
{% block header %}
<div id="user-tools">
{% if user.is_active %}
{# if debug #}
<span id="show-debug">debug <span id="hide-debug">⨯</span></span>
{# endif #}
<strong>{% filter force_escape %}
{{ user.username }}{% endfilter %}</strong>
{% block userlinks %}
<a href="{% url 'settings' %}">{% trans 'Ustawienia' %}</a> /
<a href="{% url 'auth_logout' %}">{% trans 'Wyloguj się' %}</a>
{% endblock %}
{% else %}
<a href="{% url 'auth_login' %}">{% trans 'Zaloguj się' %}</a>
{% endif %}
<form action="{% url 'set_language' %}" method="post" style="display: none" id="change_language_form">
{% csrf_token %}
<input type="hidden" value="" name="language" id="language" />
</form>
{% get_language_info_list for LANGUAGES as languages %}
{% get_current_language as lang_code %}
{% for language in languages %}
{% if language.code != lang_code %}
<span data-lang_code="{{ language.code }}" class="change-language">{{ language.code }}</span>
{% endif %}
{% endfor %}
</div>
{% include 'main_menu.html' %}
{% endblock %}
</div>
<!-- END Header -->
<!-- Content -->
<div id="content">
{% block pretitle %}{% endblock %}
{% block content_title %}{% if title %}<h1>{{ title }}</h1>
{% endif %}{% endblock %}
{% block content %}
{{ content }}
{% endblock %}
{% block sidebar %}{% endblock %}
</div>
<!-- END Content -->
{% block footer %}
<div id="footer"></div>{% endblock %}
{% block modal_elements %}{% endblock %}
{# if debug #}
<iframe id="debug">
</iframe>
{# endif #}
<!--/div-->
<!-- END Container -->
</body>
</html>