Newer
Older
Bridger Maxwell
committed
{% extends "main_django.html" %}
{% load pipeline %}{% load sekizai_tags i18n microsite %}{% load url from future %}{% load staticfiles %}
Bridger Maxwell
committed
{% block title %}<title>{% block pagetitle %}{% endblock %} | {% trans "Wiki" %} | {% platform_name %}</title>{% endblock %}
Bridger Maxwell
committed
{% block bodyclass %}view-in-course view-wiki{% endblock %}
Bridger Maxwell
committed
{% block headextra %}
<script type="text/javascript" src="/i18n.js"></script>
{% stylesheet 'style-course-vendor' %}
{% stylesheet 'style-course' %}
<script type="text/javascript">
function ajaxError(){}
$.ajaxSetup({
timeout: 7000,
cache: false,
error: function(e, xhr, settings, exception) {
ajaxError();
}
});
function jsonWrapper(url, callback) {
$.getJSON(url, function(data) {
if (data == null) {
ajaxError();
} else {
callback(data);
}
});
}
</script>
{% addtoblock 'js' %}
{% comment %} These scripts load at the bottom of the body {% endcomment %}
<script src="{% static 'js/bootstrap-alert.js' %}"></script>
<script src="{% static 'js/bootstrap-collapse.js' %}"></script>
<script src="{% static 'js/bootstrap-modal.js' %}"></script>
{% with mathjax_mode='wiki' %}
{% include "mathjax_include.html" %}
{% endwith %}
{% endaddtoblock %}
Bridger Maxwell
committed
{% endblock %}
{% block nav_skip %}#wiki-content{% endblock %}
Bridger Maxwell
committed
{% block body %}
{% if request.course %}
{% with course=request.course %}
{% include "courseware/course_navigation.html" with active_page_context="wiki" %}
{% endwith %}
Bridger Maxwell
committed
{% endif %}
<section class="container wiki {{ selected_tab }}" id="wiki-content">
{% if messages %}
{% for message in messages %}
<div class="alert alert-{{ message.tags }}">
<a class="close" data-dismiss="alert" href="#">×</a>
{{ message }}
</div>
{% endfor %}
{% endif %}
Bridger Maxwell
committed
{% endblock %}