{% extends base %}

{% block head %}
    <script type="text/javascript" src="{{_server_home}}/_static/lib/marked/marked.js"></script>
    <script type="text/javascript" src="{{_server_home}}/_static/js/marked-ext.js?ts={{_ts}}"></script>

    {% include note/component/view_css.html %}

{% end %}


{% block body_left %}
    {% include note/component/editor/editor_default_vars.html %}
    {# 收藏一下这个符号 › #}

    <!-- comment 如果有新类型的文件，继续增加file_type即可，后台实现不用变更 -->
    {% if file_type in ("md", "text", "log", "plan") %}
        {% include note/component/editor/markdown.html %}
    {% elif file_type == "gallery" %}
        {% include note/component/editor/gallery.html %}
    {% else %}
        {% include note/component/editor/post.html %}
    {% end %}

    {# 文章信息 #}
    {% include note/component/note_ext_info.html %}

    {# 评论功能 #}
    {% if file_type != "group" and show_comment %}
        {% include note/page/comment/comment.html %}
    {% end %}

    {# 分页 #}
    {% if show_pagination and "page" in globals() %}
        <div class="card">
            {% include mod_pagenation.html %}
        </div>
    {% end %}

{% include note/component/script/delete_script.html %}
{% include note/component/script/rename_script.html %}

<script type="text/javascript">

$(function () {
    window.adjustTable();
})
</script>

{% end %}


{% block body_right %}
<div class="desktop-only">
    {% include common/sidebar/app_index.html %}
    {% init show_sidebar_group_entry = False %}
    {% init show_sidebar_note_brothers = True %}
    {% include note/component/sidebar/note_sidebar.html %}
</div>
{% end %}