|
|
@@ -14,22 +14,24 @@
|
|
|
|
|
|
<div class="tab-content">
|
|
|
|
|
|
- {% if not page.isLatestRevision() %}
|
|
|
- <div class="alert alert-warning">
|
|
|
- <strong>{{ t('Warning') }}: </strong> {{ t('page_page.notice.version') }} <i class="fa fa-magic"></i> <a href="{{ page.path }}">{{ t('Show latest') }}</a>
|
|
|
- </div>
|
|
|
- {% endif %}
|
|
|
+ {% if page %}
|
|
|
+ {% if not page.isLatestRevision() %}
|
|
|
+ <div class="alert alert-warning">
|
|
|
+ <strong>{{ t('Warning') }}: </strong> {{ t('page_page.notice.version') }} <i class="fa fa-magic"></i> <a href="{{ page.path }}">{{ t('Show latest') }}</a>
|
|
|
+ </div>
|
|
|
+ {% endif %}
|
|
|
|
|
|
- <script type="text/template" id="raw-text-original">{{ revision.body }}</script>
|
|
|
+ <script type="text/template" id="raw-text-original">{{ revision.body }}</script>
|
|
|
|
|
|
- {# formatted text #}
|
|
|
- <div class="tab-pane {% if not req.body.pageForm %}active{% endif %}" id="revision-body">
|
|
|
- <div class="revision-toc" id="revision-toc">
|
|
|
- <a data-toggle="collapse" data-parent="#revision-toc" href="#revision-toc-content" class="revision-toc-head">{{ t('Table of Contents') }}</a>
|
|
|
- <div id="revision-toc-content" class="revision-toc-content collapse in"></div>
|
|
|
+ {# formatted text #}
|
|
|
+ <div class="tab-pane {% if not req.body.pageForm %}active{% endif %}" id="revision-body">
|
|
|
+ <div class="revision-toc" id="revision-toc">
|
|
|
+ <a data-toggle="collapse" data-parent="#revision-toc" href="#revision-toc-content" class="revision-toc-head">{{ t('Table of Contents') }}</a>
|
|
|
+ <div id="revision-toc-content" class="revision-toc-content collapse in"></div>
|
|
|
+ </div>
|
|
|
+ <div id="page" class="m-t-15"></div>
|
|
|
</div>
|
|
|
- <div id="page" class="m-t-15"></div>
|
|
|
- </div>
|
|
|
+ {% endif %}
|
|
|
|
|
|
{# edit form #}
|
|
|
{% if not page.isDeleted() %}
|