-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathmain_django.html
61 lines (49 loc) · 2 KB
/
main_django.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
<!DOCTYPE html>
{% load sekizai_tags i18n configuration theme_pipeline optional_include static %}
<html lang="{{LANGUAGE_CODE}}">
<head>
<meta charset="UTF-8">
<title>{% block title %}{{ platform_name }}{% endblock %}</title>
<link rel="icon" type="image/x-icon" href="{% favicon_path %}" />
{% with "js/i18n/"|add:LANGUAGE_CODE|add:"/djangojs.js" as i18njs_path %}
<script type="text/javascript" src="{% static i18njs_path %}"></script>
{% endwith %}
{% stylesheet 'style-vendor' %}
{% stylesheet 'style-main-v1' %}
{% block main_vendor_js %}
{% javascript 'main_vendor' %}
{% endblock %}
{% block headextra %}{% endblock %}
{% render_block "css" %}
{% optional_include "head-extra.html"|microsite_template_path %}
<meta name="path_prefix" content="{{EDX_ROOT_URL}}">
</head>
<body class="{% block bodyclass %}{% endblock %} lang_{{LANGUAGE_CODE}}">
{% load render_bundle from webpack_loader %}
{% render_bundle "commons" %}
<div class="window-wrap" dir="{{LANGUAGE_BIDI|yesno:'rtl,ltr'}}">
<a class="nav-skip" href="#main">{% trans "Skip to main content" as tmsg %} | {{ tmsg | force_escape }}</a>
{% with course=request.course %}
{% include "header.html"|microsite_template_path with online_help_token=online_help_token %}
{% endwith %}
<div class="content-wrapper" id="content">
{% block body %}{% endblock %}
{% block bodyextra %}{% endblock %}
</div>
{% with course=request.course %}
{% include "footer.html"|microsite_template_path %}
{% endwith %}
</div>
{% javascript 'base_application' %}
{% render_block "js" %}
</body>
</html>
{% comment %}
This is a django template version of our main page from which all
other pages inherit. This file should be rewritten to reflect any
changes in main.html! Files used by {% include %} can be written
as mako templates.
Inheriting from this file allows us to include apps that use the
django templating system without rewriting all of their views in
mako.
{% endcomment %}