-
Notifications
You must be signed in to change notification settings - Fork 113
/
_base.html
148 lines (133 loc) · 6.89 KB
/
_base.html
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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
{% set is_homepage = request.path in ['/', '/{}'.format(lang), '/{}/'.format(lang)] %}
<!doctype html>
<html lang="{{ lang }}">
<head>
<meta charset="utf-8">
<link rel="shortcut icon" type="image/x-icon" href="{{ url_for('static', filename='favicon.ico') }}">
<meta property="og:image" content="{{ url_for('static', filename='images/logo-fb.png', _external=True) }}">
<meta property="og:type" content="website">
<meta property="og:url" content="{{ url }}">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Arbutus+Slab&subset=latin,latin-ext">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="{{ url_for('static', filename='main.css') }}">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
{% block head %}
<title>Python, programovací jazyk</title>
<meta property="og:title" content="Python, programovací jazyk">
<meta name="description" content="Česká (a tak trochu i slovenská) komunita kolem programovacího jazyka Python.">
<meta property="og:description" content="Česká (a tak trochu i slovenská) komunita kolem programovacího jazyka Python.">
{% endblock %}
</head>
<body class="{% block body_class %}{% if is_homepage %}homepage{% endif %}{% endblock %}">
<!--
This 'notice' is a temporary thing to advertise something to visitors of the site.
Once the advertising period is over, it should be commented out. (Probably not worth
deleting as we may need to advertise something in the future again.)
{% if lang == 'cs' %}
<div class="notice">
🐍🎪 O víkendu 24.-26.8. proběhne sprint české Python komunity. Je to setkání, kde společně řešíme věci kolem našich aktivit (ať už diskuzí nebo společným kódováním). <a href="http://bit.ly/pysprint">Info v přihlášce</a> (do středy). 🍻🍲☕🎸 Přijeď.
</div>
{% endif %}
-->
<div class="container">
{% if not debug %}
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', '{{ config.GOOGLE_ANALYTICS_CODE }}', 'auto');
ga('send', 'pageview');
</script>
{% endif %}
<div class="header clearfix">
<nav>
<ul class="nav nav-pills pull-right">
<li>
{% if lang == 'cs' %}
<a href="{{ url_for('index_en') }}">
<i class="fa fa-globe"></i>
English, please!
</a>
{% else %}
<a href="{{ url_for('index_cs') }}">
<i class="fa fa-globe"></i>
Umíš česky?
</a>
{% endif %}
</li>
</ul>
</nav>
<p class="title">
<a href="{{ url_for('index_' + lang) }}">
<img src="{{ url_for('static', filename='images/logo-plain.png') }}" height="30">
{% if lang == 'cs' %}
Python v ČR
{% else %}
Czech Python
{% endif %}
</a>
</p>
</div>
{% if not is_homepage %}
<ol class="breadcrumb">
<li>
<a href="{{ url_for('index_' + lang) }}">
{% if lang == 'cs' %}Domů{% else %}Home{% endif %}
</a>
</li>
<li class="active">
{% block breadcrumb %}{% endblock %}
</li>
</ol>
{% endif %}
<div class="content">
{% block content %}{% endblock %}
</div>
<div class="row footer">
{% if lang == 'cs' %}
<p class="col-sm-8">
Stránky spravuje nezisková organizace <a href="http://pyvec.org">Pyvec</a>. Pište na <a
href="mailto:info@pyvec.org">info@<!---->pyvec.org</a>, tweetujte na <a href="https://twitter.com/pyvec">@pyvec</a>.
<br>
Ilustrace kreslí <a href="http://honzajavorek.cz">Honza Javorek</a>.
Doménu python.cz zapůjčil <a href="http://xnet.cz/">KRAXNET</a>.
Děkujeme!
</p>
<p class="edit col-sm-4">
<a href="{{ template_url }}" class="btn btn-default">
<i class="fa fa-edit"></i>
Upravit tuto stránku
</a>
</p>
{% else %}
<p class="col-sm-8">
Managed by <a href="http://pyvec.org">Pyvec</a>, a nonprofit organization. Send e-mails to <a
href="mailto:info@pyvec.org">info@<!---->pyvec.org</a>, tweet to <a href="https://twitter.com/pyvec">@pyvec</a>.
<br>
Illustrations by <a href="http://honzajavorek.cz">Honza Javorek</a>.
Hosted for free at <a href="https://rosti.cz">Roští.cz</a>.
The domain name python.cz is borrowed from <a href="http://xnet.cz/">KRAXNET</a>.
Thank you!
</p>
<p class="edit col-sm-4">
<a href="{{ template_url }}" class="btn btn-default">
<i class="fa fa-edit"></i>
Edit this page
</a>
</p>
{% endif %}
</div>
<script src="https://code.jquery.com/jquery-1.10.1.min.js"></script>
<script src="{{ url_for('static', filename='permalinks.js') }}"></script>
{% block scripts %}{% endblock %}
</div>
</body>
</html>