MrDoc/template/app_doc/doc.html
2019-12-15 15:45:05 +08:00

36 lines
1.3 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!-- 继承自模板app_doc/docs_base.html -->
{% extends 'app_doc/docs_base.html' %}
<!-- 引入静态文件 -->
{% load staticfiles %}
{% block title %}{{ doc.name }} - {{ project.name }}{% endblock %}
{% block head_toolbar %}
{% if request.user == doc.create_user %}
<a class="btn pull-left" aria-label="" href="{% url 'modify_doc' doc_id=doc.id %}">
<i class="fa fa-edit"></i> 修改
</a>
<a class="btn pull-left" aria-label="" href="{% url 'create_doc' %}" target="_blank">
<i class="fa fa-file"></i> 新建
</a>
{% endif %}
{% endblock %}
{% block content_head %}
<h1>{{ doc.name }}</h1><hr>
<p style="color: #666;font-size:12px;">
<!--<i class="fa fa-th-large"></i> 发表:{{ doc.create_time }}-->
&nbsp;&nbsp;&nbsp;&nbsp;<i class="fa fa-edit"></i> 最后修改于:{{ doc.modify_time }}
<!--<i class="fa fa-user"></i> {{ doc.create_user.username }}-->
</p>
{% endblock %}
{% block page_content %}
{# {{ doc.content | safe }} #}
<style>
div.editormd-toc-menu ul.markdown-toc-list li,ul.markdown-toc-list > li > ul li{
list-style: none;
}
</style>
<textarea id="" style="display: none;">{{ doc.pre_content }}</textarea>
{% endblock %}