{% extends base %}

{% block body_top %}

    {% init default_content = "" %}
    {% init show_tab = True %}
    {% init key = "" %}
    
    <link rel="stylesheet" type="text/css" href="{{_server_home}}/_static/lib/webuploader/webuploader.css">
    <script type="text/javascript" src="{{_server_home}}/_static/lib/webuploader/webuploader.nolog.min.js"></script>
    <script type="text/javascript" src="{{_server_home}}/_static/js/message/message.js?ts={{_ts}}"></script>

    <input class="msg-search-key" type="hidden" value="{{key}}"/>
    <input class="default-content-input" type="hidden" value="{{default_content}}"/>
{% end %}

{% block body_left %}
    <!-- 随手记标签页 -->
    {% init message_tag = "" %}
    <!-- Tab页 -->
    {% init message_tab = "log" %}
    {% init default_content = "" %}
    {% init show_tab = True %}
    {% init show_input_box = True %}
    {% init show_system_tag = True %}
    {% init show_keyword_info = False %}
    {% init message_left_class = "message-left" %}
    {% init message_right_class = "message-right" %}

    <!-- 标题 -->
    {% include message/component/message_title.html %}

    <!-- 事件转换 -->
    {% include message/component/message_event.html %}

    <!-- 编辑 -->
    {% include message/component/message_edit.html %}

    <!-- Tab页 -->
    {% include message/page/task_tab.html %}
    
    <div class="{{message_left_class}}">
        {% include message/component/right/tags.html %}
    </div>

    <div class="{{message_right_class}}">
        <!-- 编辑器 -->
        {% include message/component/message_input.html %}

        <!-- 标签过滤器 -->
        {% include message/page/tag_filter.html %}
    
        <!-- 内容区域 -->
        {% include message/page/message_list_content.html %}
    </div>

    <script type="text/javascript">
        xnote.state.message.messageTag = "{{message_tag}}";
        xnote.state.message.tag = "{{tag}}";
        MessageView.listAjaxUrl = "{{_server_home}}/message/task/list_ajax";
        MessageView.refreshList();
    </script>

{% end %}


{% block body_right %}
    <div class="desktop-only">
        {% include common/sidebar/app_index.html %}
        {% include note/component/group_special_folder.html %}
    </div>
{% end %}
