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