forked from pythonprobr/pythonpro-website
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbase.html
More file actions
177 lines (166 loc) · 9.51 KB
/
base.html
File metadata and controls
177 lines (166 loc) · 9.51 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
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
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
{% load static %}
<!DOCTYPE html>
<html lang="pt-br" data-wf-page="5f11fb784cf649f4dd0aa7ab" data-wf-site="5f07a1c9ac6e0b5937b108a7">
<head>
<!-- Google Tag Manager -->
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','{{GOOGLE_TAG_MANAGER_ID}}');</script>
<!-- End Google Tag Manager -->
<meta charset="UTF-8">
<title>{% block title %}Python Pro: Curso da linguagem de programação Python, Presencial Online, do Básico ao
Avançado!{% endblock %}</title>
<meta name="description" content="{% block description %}{% endblock %}"/>
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"/>
<link rel="icon" type="image/png" href="{% static 'img/favicon.ico' %}"/>
{% block scripts %}
{% include 'core/_scripts.html' %}
<script type="application/javascript" src="{% static 'js/jquery-3.2.1.min.js' %}"></script>
<script type="application/javascript" src="{% static 'js/bootstrap.bundle.min.js' %}"></script>
{% endblock %}
{% block styles %}
<link rel="stylesheet" href="{% static 'css/custom.css' %}"/>
<link rel="stylesheet" href="{% static 'css/default.css' %}"/>
<link href='//fonts.googleapis.com/css?family=Ubuntu:400,500' rel='stylesheet' type='text/css'/>
{% endblock %}
{% block head %}{% endblock %}
</head>
<body class="{% block body_class %}{% endblock %}">
{# Google Tag Manager (noscript)#}
<noscript>
<iframe src="https://www.googletagmanager.com/ns.html?id={{ GOOGLE_TAG_MANAGER_ID }}"
height="0" width="0" style="display:none;visibility:hidden"></iframe>
</noscript>
{# End Google Tag Manager (noscript)#}
{% block navbar %}
<nav class="navbar navbar-dark bg-dark navbar-expand-md">
<a class="navbar-brand" href="/">Python Pro</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent"
aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav mr-auto">
{% if user.is_authenticated %}
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbarCohorts" role="button"
data-toggle="dropdown"
aria-haspopup="true" aria-expanded="false">
Turmas
</a>
<div class="dropdown-menu bg-dark border-light" aria-labelledby="navbarCohorts">
{% for cohort in ALL_COHORTS %}
<a class="dropdown-item text-light"
href="{{ cohort.get_absolute_url }}">{{ cohort.title }}</a>
{% if not forloop.last %}
<div class="dropdown-divider"></div>
{% endif %}
{% endfor %}
</div>
</li>
<li class="nav-item">
<a class="nav-link" href="{% url 'modules:index' %}">Cursos</a>
</li>
<li class="nav-item">
<a class="nav-link" href="{% url 'cohorts:webinars' %}">Webinários</a>
</li>
{% else %}
<li class="nav-item">
<a class="nav-link" href="{% url 'modules:index' %}">Cursos</a>
</li>
{% endif %}
{% if user.is_authenticated and DISCOURSE_BASE_URL %}
<li class="nav-item">
<a class="nav-link" href="{{ DISCOURSE_BASE_URL }}">Fórum</a>
</li>
{% endif %}
<li class="nav-item">
<a class="nav-link" href="{% url 'core:tech_talks' %}">Tech Talks</a>
</li>
<li class="nav-item">
<a class="nav-link" href="{% url 'core:podcast' %}">Podcast</a>
</li>
</ul>
{% if user.is_authenticated %}
<ul class="navbar-nav ">
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbarCourses" role="button"
data-toggle="dropdown"
aria-haspopup="true" aria-expanded="false">
{{ user.first_name }}
</a>
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="dropdownMenuButton">
<a class="dropdown-item" href="{% url 'dashboard:home' %}">Dashboard</a>
<a class="dropdown-item" href="{% url 'core:profile' %}">Perfil</a>
<div class="dropdown-divider"></div>
<div class="dropdown-item">
<a class="btn btn-danger" href="{% url 'logout' %}">Sair</a>
</div>
</div>
</li>
</ul>
{% else %}
<a class="btn btn-light my-2 my-sm-0"
href="{% url 'two_factor:login' %}?next={% url 'dashboard:home' %}">Entrar</a>
{% endif %}
</div>
</nav>
{% endblock navbar %}
{% block body %}{% endblock body %}
{% block footer %}
<footer class="main-footer text-light">
<div class="container">
<div class="row">
<div class="col">
<h3 class="mt-3">Entre em contato</h3>
<address class="main-address">
+55 12 99141-5422<br/>
{{ DEFAULT_FROM_EMAIL }}
</address>
</div>
</div>
</div>
<div class="rights pt-1">
<div class="container">
<div class="row">
<div class="col">
<p>Python Pro © {% now "Y" %}. Todos os direitos reservados. CNPJ: 31.080.715/0001-25</p>
</div>
</div>
<div class="row">
<div class="col">
<p>
<a href="https://pythonpro.com.br/termos-de-uso" target="_blank">Termos de Uso</a>
|
<a href="https://pythonpro.com.br/politica-de-privacidade" target="_blank">Política de Privacidade</a>
</p>
</div>
</div>
</div>
</div>
</footer>
{% endblock footer %}
{% block bottom_scripts %}{% endblock %}
{% block posthog %}
{% if user.is_authenticated %}
<script type="application/javascript">
!function(t,e){var o,n,p,r;e.__SV||(window.posthog=e,e._i=[],e.init=function(i,s,a){function g(t,e){var o=e.split(".");2==o.length&&(t=t[o[0]],e=o[1]),t[e]=function(){t.push([e].concat(Array.prototype.slice.call(arguments,0)))}}(p=t.createElement("script")).type="text/javascript",p.async=!0,p.src=s.api_host+"/static/array.js",(r=t.getElementsByTagName("script")[0]).parentNode.insertBefore(p,r);var u=e;for(void 0!==a?u=e[a]=[]:a="posthog",u.people=u.people||[],u.toString=function(t){var e="posthog";return"posthog"!==a&&(e+="."+a),t||(e+=" (stub)"),e},u.people.toString=function(){return u.toString(1)+".people (stub)"},o="capture identify alias people.set people.set_once set_config register register_once unregister opt_out_capturing has_opted_out_capturing opt_in_capturing reset isFeatureEnabled onFeatureFlags".split(" "),n=0;n<o.length;n++)g(u,o[n]);e._i.push([i,s,a])},e.__SV=1)}(document,window.posthog||[]);
posthog.init('{{POSTHOG_API_KEY}}',{
api_host:'{{POSTHOG_API_URL}}',
loaded: function(posthog) {
posthog.identify('{{ user.email }}');
posthog.people.set({email: '{{ user.email }}'})
}
})
</script>
{% else %}
<script type="application/javascript">
!function(t,e){var o,n,p,r;e.__SV||(window.posthog=e,e._i=[],e.init=function(i,s,a){function g(t,e){var o=e.split(".");2==o.length&&(t=t[o[0]],e=o[1]),t[e]=function(){t.push([e].concat(Array.prototype.slice.call(arguments,0)))}}(p=t.createElement("script")).type="text/javascript",p.async=!0,p.src=s.api_host+"/static/array.js",(r=t.getElementsByTagName("script")[0]).parentNode.insertBefore(p,r);var u=e;for(void 0!==a?u=e[a]=[]:a="posthog",u.people=u.people||[],u.toString=function(t){var e="posthog";return"posthog"!==a&&(e+="."+a),t||(e+=" (stub)"),e},u.people.toString=function(){return u.toString(1)+".people (stub)"},o="capture identify alias people.set people.set_once set_config register register_once unregister opt_out_capturing has_opted_out_capturing opt_in_capturing reset isFeatureEnabled onFeatureFlags".split(" "),n=0;n<o.length;n++)g(u,o[n]);e._i.push([i,s,a])},e.__SV=1)}(document,window.posthog||[]);
posthog.init('{{POSTHOG_API_KEY}}',{api_host:'{{POSTHOG_API_URL}}'})
</script>
{% endif %}
{% endblock %}
</body>
</html>