Commit 4b26cf82 by Nate Hardison Committed by Jason Bau

Update main_django.html to match main.html

Using the new Django settings context processor, we now have access
to the settings we need to enable theming in this base Django
template (used as the base layout for the course wiki). Update this
template to match the theming changes made to lms/templates/main.html
parent 054500e7
......@@ -2,13 +2,22 @@
{% load compressed %}{% load sekizai_tags i18n %}{% load url from future %}{% load staticfiles %}
<html>
<head>
{% block title %}<title>edX</title>{% endblock %}
{% block title %}
{% if THEME_NAME == "stanford" %}
<title>Home | class.stanford.edu</title>
{% else %}
<title>edX</title>
{% endif %}
{% endblock %}
<link rel="icon" type="image/x-icon" href="{% static "images/favicon.ico" %}" />
<link rel="icon" type="image/x-icon" href="{% static FAVICON_PATH %}" />
{% compressed_css 'application' %}
{% compressed_js 'main_vendor' %}
{% block headextra %}{% endblock %}
{% if MITX_FEATURES.USE_CUSTOM_THEME %}
{% include "theme-head-extra.html" %}
{% endif %}
{% render_block "css" %}
......@@ -23,13 +32,22 @@
</head>
<body class="{% block bodyclass %}{% endblock %}">
{% include "navigation.html" %}
{% if MITX_FEATURES.USE_CUSTOM_THEME %}
{% include "theme-header.html" %}
{% else %}
{% include "navigation.html" %}
{% endif %}
<section class="content-wrapper">
{% block body %}{% endblock %}
{% block bodyextra %}{% endblock %}
</section>
{% include "footer.html" %}
{% if MITX_FEATURES.USE_CUSTOM_THEME %}
{% include "theme-footer.html" %}
{% else %}
{% include "footer.html" %}
{% endif %}
{% compressed_js 'application' %}
{% compressed_js 'module-js' %}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment