main_django.html 1.87 KB
Newer Older
1
<!DOCTYPE html>
2
{% load sekizai_tags i18n microsite pipeline optional_include staticfiles %}
3
{% load url from future %}
4
<html lang="{{LANGUAGE_CODE}}">
5
<head>
6
  <meta charset="UTF-8">
7
  {% block title %}<title>{% platform_name %}</title>{% endblock %}
8

9 10 11 12 13
  <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 %}
14

15
  {% stylesheet 'style-vendor' %}
16
  {% stylesheet 'style-main-v1' %}
17

18
  {% block main_vendor_js %}
19
  {% javascript 'main_vendor' %}
20
  {% endblock %}
21 22
  {% block headextra %}{% endblock %}
  {% render_block "css" %}
23

24
  {% optional_include "head-extra.html"|microsite_template_path %}
25

26
  <meta name="path_prefix" content="{{EDX_ROOT_URL}}">
27 28
</head>

29
<body class="{% block bodyclass %}{% endblock %} lang_{{LANGUAGE_CODE}}">
30
  <div class="window-wrap" dir="{{LANGUAGE_BIDI|yesno:'rtl,ltr'}}">
31
    <a class="nav-skip" href="#main">{% trans "Skip to main content" %}</a>
32
    {% with course=request.course %}
33
      {% include "header.html"|microsite_template_path %}
34
    {% endwith %}
35
    <div class="content-wrapper" id="content">
36 37 38
      {% block body %}{% endblock %}
      {% block bodyextra %}{% endblock %}
    </div>
39
    {% with course=request.course %}
40
      {% include "footer.html"|microsite_template_path %}
41
    {% endwith %}
42

43
  </div>
44

45
    {% javascript 'base_application' %}
46

47
    {% render_block "js" %}
48 49
</body>
</html>
50 51 52 53 54 55

{% 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.
56

57 58
  Inheriting from this file allows us to include apps that use the
  django templating system without rewriting all of their views in
59
  mako.
60
{% endcomment %}