From 73bff1d23a9503cabf5921925e7919c85fa6fafa Mon Sep 17 00:00:00 2001 From: yangjian Date: Sat, 8 May 2021 22:53:13 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=84=E7=90=86=E5=88=86=E4=BA=AB=E7=9A=84?= =?UTF-8?q?=E6=96=87=E6=A1=A3=E5=86=85=E5=AE=B9=E4=B8=8D=E6=B8=B2=E6=9F=93?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- template/app_doc/share/share_doc.html | 465 +++++++------------------- 1 file changed, 117 insertions(+), 348 deletions(-) diff --git a/template/app_doc/share/share_doc.html b/template/app_doc/share/share_doc.html index 6c8253c..3aa95dd 100644 --- a/template/app_doc/share/share_doc.html +++ b/template/app_doc/share/share_doc.html @@ -15,100 +15,33 @@ {{doc.name}} - {% trans "文档分享" %} - {% if site_name != None and site_name != '' %}{{site_name}} {% else %}{% trans "站点标题" %}{% endif %} - - {% if doc.editor_mode == 2 %} - + {% if doc.editor_mode != 4 %} + + {% endif %} + {% if doc.editor_mode == 2 %} + + {% endif %} + {% if doc.editor_mode == 4 %} + + + + + {% endif %} - + + - {% if debug %} - {% else %} - {% if ad_code %} -
- {{ ad_code | safe }} -
- {% endif %} - {% endif %} -
{% block page_content %} {% if doc.editor_mode == 3 %} - {{ doc.pre_content | safe }} + {{ doc.content | safe }} + {% elif doc.editor_mode == 2 %} + + {% elif doc.editor_mode == 4 %} +
+ {% else %} - + {% endif %} {% endblock %}
@@ -195,42 +123,52 @@ {% endblock %} - - {% if debug %} - {% else %} - {% if ad_code_2 %} -
- {{ ad_code_2 | safe }} -
- {% endif %} - {% endif %} - - {% block doc_previous_next %}{% endblock %} -
-
+
+
{% block right_widget %} - - + + {% if doc.create_user == request.user %} + + {% endif %} + + {% endblock %}
+ + + - - - + + + + + + {% if doc.editor_mode == 2 %} - + {% elif doc.editor_mode == 1 %} - - - - - + +{% elif doc.editor_mode == 4 %} + + + {% endif %} - - - + - - + - - @@ -383,106 +267,25 @@ toggleSidebar() - + +{% if debug %} +{% else %} +
+ {{ad_code|safe}} +
+
+ {{ad_code_2|safe}} +
+
+ {{ad_code_3|safe}} +
- - - +{% endif %} + {% if debug %} @@ -491,40 +294,6 @@ {% endif %} {% block custom_script %} - - - {% endblock %} \ No newline at end of file