preview_inline.html 1.46 KB
Newer Older
1 2 3 4
<!DOCTYPE html>
{% load wiki_tags i18n %}{% load compressed %}
<html>
<head>
5 6
  {% compressed_css 'course' %}  
  {% compressed_js 'main_vendor' %}
7
</head>
Tom Giannattasio committed
8 9 10 11 12
<body class="modal-preview">
  <section class="container wiki view">
    <div class="main-article">
      {% if revision %}
        <div class="alert alert-info">
13 14
          <strong>{% trans "Previewing revision" %}:</strong>
          {% include "wiki/includes/revision_info.html" %}
Tom Giannattasio committed
15 16
        </div>
      {% endif %}
17

Tom Giannattasio committed
18 19 20
      {% if merge %}
        <div class="alert alert-info">
          <strong>{% trans "Previewing merge between" %}:</strong>
21
          {% include "wiki/includes/revision_info.html" with revision=merge1 %}
Tom Giannattasio committed
22
          <strong>{% trans "and" %}</strong>
23
          {% include "wiki/includes/revision_info.html" with revision=merge2 %}
Tom Giannattasio committed
24 25
        </div>
      {% endif %}
26

Tom Giannattasio committed
27
      <h1 class="page-header">{{ title }}</h1>
28

29 30 31 32 33 34 35 36 37
      {% if revision and revision.deleted %}
        <div class="warning">
          <strong>This revision has been deleted.</strong> 
          <p>Restoring to this revision will mark the article as deleted.</p>
        </div>
      {% else %}
        {% wiki_render article content %}
      {% endif %}
      
Tom Giannattasio committed
38
    </div>
39
  </section>
40 41 42
  
  {% compressed_js 'application' %}
  {% compressed_js 'module-js' %}
43
  
44 45 46 47
  <script>
    window.onload = add_schematic_handler(window.onload);
  </script>
  
48 49 50 51
  {% with mathjax_mode='wiki' %}
    {% include "mathjax_include.html" %}
  {% endwith %}
  
52 53 54 55 56 57
</body>
</html>