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

8
 <link rel="icon" type="image/x-icon" href="{% favicon_path %}" />
9

10 11 12 13 14 15 16
  {% compressed_css 'style-vendor' %}
  {% compressed_css 'style-app' %}
  {% compressed_css 'style-app-extend1' %}
  {% compressed_css 'style-app-extend2' %}
  {% compressed_css 'style-course-vendor' %}
  {% compressed_css 'style-course' %}

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

23
  {% microsite_css_overrides_file %}
24

25
  <!--[if lt IE 9]>
26
  <script src="{% static 'js/html5shiv.js' %}"></script>
27 28
  <![endif]-->

29
  <meta name="path_prefix" content="{{EDX_ROOT_URL}}">
30 31
</head>

32
<body class="{% block bodyclass %}{% endblock %} lang_{{LANGUAGE_CODE}}">
33
  <a class="nav-skip" href="{% block nav_skip %}#content{% endblock %}">{% trans "Skip to main content" %}</a>
34
  {% with course=request.course %}
35 36
    {% if IS_EDX_DOMAIN %}
      {% include "navigation-edx.html" %}
37
    {% else %}
38
      {% include "navigation.html" %}
39 40
    {% endif %}
  {% endwith %}
41
  <div class="content-wrapper" id="content">
42 43
    {% block body %}{% endblock %}
    {% block bodyextra %}{% endblock %}
44
  </div>
45 46 47
  {% if IS_REQUEST_IN_MICROSITE %}
  {# For now we don't support overriden Django templates in microsites. Leave footer blank for now which is better than saying Edx.#}
  {% elif IS_EDX_DOMAIN %}
48
    {% include "footer-edx-new.html" %}
49 50 51
  {% else %}
    {% include "footer.html" %}
  {% endif %}
52

53 54
  {% compressed_js 'application' %}
  {% compressed_js 'module-js' %}
55

56
  {% render_block "js" %}
57 58
</body>
</html>
59 60 61 62 63 64

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

66 67
  Inheriting from this file allows us to include apps that use the
  django templating system without rewriting all of their views in
68
  mako.
69
{% endcomment %}