ECOM-1547 removed data-updated attributes from body ECOM-1548 added JS file that inits analytics event listener and makes ajax call to API to get footer and HTML and add it to the DOM ECOM-1547 code review cleanup ECOM-1547 rebase and Sass appraoch update after @talbs the IE9 killer slayed the mighty beast. ECOM-1547 updated file names and added comments in light of @talbs review of PR ECOM-1547 update to social media link styles and nav link order ECOM-1547 updated SOCIAL_MEDIA_FOOTER_NAMES if ENABLE_FOOTER_V3 is true ECOM-1547 added translations to screenreader text ECOM-1547 fixed test and renamed files in line with @talbs's pending PR ECOM-1547 cleaned up file naming
66 lines
2.1 KiB
HTML
66 lines
2.1 KiB
HTML
<!DOCTYPE html>
|
|
{% load compressed %}{% load sekizai_tags i18n microsite %}{% load url from future %}{% load staticfiles %}
|
|
<html lang="{{LANGUAGE_CODE}}">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
{% block title %}<title>{% platform_name %}</title>{% endblock %}
|
|
|
|
<link rel="icon" type="image/x-icon" href="{% favicon_path %}" />
|
|
|
|
{% compressed_css 'style-vendor' %}
|
|
{% compressed_css 'style-main' %}
|
|
{% compressed_css 'style-course-vendor' %}
|
|
{% compressed_css 'style-course' %}
|
|
|
|
{% block main_vendor_js %}
|
|
{% compressed_js 'main_vendor' %}
|
|
{% endblock %}
|
|
{% block headextra %}{% endblock %}
|
|
{% render_block "css" %}
|
|
|
|
{% microsite_css_overrides_file %}
|
|
|
|
<meta name="path_prefix" content="{{EDX_ROOT_URL}}">
|
|
</head>
|
|
|
|
<body class="{% block bodyclass %}{% endblock %} lang_{{LANGUAGE_CODE}}">
|
|
<a class="nav-skip" href="{% block nav_skip %}#content{% endblock %}">{% trans "Skip to main content" %}</a>
|
|
{% with course=request.course %}
|
|
{% if IS_EDX_DOMAIN %}
|
|
{% include "navigation-edx.html" %}
|
|
{% else %}
|
|
{% include "navigation.html" %}
|
|
{% endif %}
|
|
{% endwith %}
|
|
<div class="content-wrapper" id="content">
|
|
{% block body %}{% endblock %}
|
|
{% block bodyextra %}{% endblock %}
|
|
</div>
|
|
{% 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 and not ENABLE_FOOTER_V3 %}
|
|
{% include "footer-edx-v2.html" %}
|
|
{% elif IS_EDX_DOMAIN and ENABLE_FOOTER_V3 %}
|
|
{% include "footer-edx-v3.html" %}
|
|
{% else %}
|
|
{% include "footer.html" %}
|
|
{% endif %}
|
|
|
|
{% compressed_js 'application' %}
|
|
{% compressed_js 'module-js' %}
|
|
|
|
{% 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 %}
|