Files
edx-platform/lms/templates/wiki/preview_inline.html
2013-08-12 16:42:07 -04:00

58 lines
1.5 KiB
HTML

<!DOCTYPE html>
{% load wiki_tags i18n %}{% load compressed %}
<html>
<head>
{% compressed_css 'course' %}
{% compressed_js 'main_vendor' %}
</head>
<body class="modal-preview">
<section class="container wiki view">
<div class="main-article">
{% if revision %}
<div class="alert alert-info">
<strong>{% trans "Previewing revision" %}:</strong>
{% include "wiki/includes/revision_info.html" %}
</div>
{% endif %}
{% if merge %}
<div class="alert alert-info">
<strong>{% trans "Previewing merge between" %}:</strong>
{% include "wiki/includes/revision_info.html" with revision=merge1 %}
<strong>{% trans "and" %}</strong>
{% include "wiki/includes/revision_info.html" with revision=merge2 %}
</div>
{% endif %}
<h1 class="page-header">{{ title }}</h1>
{% if revision and revision.deleted %}
<div class="warning">
<strong>{% trans "This revision has been deleted." %}</strong>
<p>{% trans "Restoring to this revision will mark the article as deleted." %}</p>
</div>
{% else %}
{% wiki_render article content %}
{% endif %}
</div>
</section>
{% compressed_js 'application' %}
{% compressed_js 'module-js' %}
<script>
window.onload = add_schematic_handler(window.onload);
</script>
{% with mathjax_mode='wiki' %}
{% include "mathjax_include.html" %}
{% endwith %}
</body>
</html>