main_django.html 1.37 KB
Newer Older
1
<!DOCTYPE html>
2
{% load compressed %}{% load sekizai_tags i18n %}{% load url from future %}{% load staticfiles %}
3 4 5
<html>
<head>
  {% block title %}<title>edX</title>{% endblock %}
6
  
7
  <link rel="icon" type="image/x-icon" href="{% static "images/favicon.ico" %}" />
8 9 10 11 12 13
  
  {% compressed_css 'application' %}
  {% compressed_js 'main_vendor' %}
  {% block headextra %}{% endblock %}
  {% render_block "css" %}
  
14
  
15
  <!--[if lt IE 9]>
16
  <script src="${static.url('js/html5shiv.js')}"></script>
17 18
  <![endif]-->

19 20 21 22
  <!--[if lte IE 9]>
  <%static:css group='ie-fixes'/>
  <![endif]-->
  <meta name="path_prefix" content="{{MITX_ROOT_URL}}">
23 24 25 26 27 28 29 30
</head>

<body class="{% block bodyclass %}{% endblock %}">
  {% include "navigation.html" %}
  <section class="content-wrapper">
    {% block body %}{% endblock %}
    {% block bodyextra %}{% endblock %}
  </section>
31
  
32 33 34 35
  {% include "footer.html" %}
    
  {% compressed_js 'application' %}
  {% compressed_js 'module-js' %}
36
  
37
  {% render_block "js" %}
38 39
</body>
</html>
40 41 42 43 44 45 46 47 48 49

{% 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. 
50
{% endcomment %}