{% init show_tab = True %}

{% if show_tab %}

{% init message_stat = xutils.call("message.get_current_message_stat") %}
{% init tab_default = "log" %}

<!-- 桌面版菜单 -->
<div class="card x-tab-box message-tab" data-tab-key="tag" data-tab-default="{{tab_default}}">
    <a class="x-tab" data-tab-value="log" href="{{_server_home}}/message?tag=log">
        记事(<span class="log-count">{{message_stat.log_count}}</span>)
    </a>
    <a class="x-tab" data-tab-value="log.tags" href="{{_server_home}}/message/tag/list">
        标签(<span class="key-count">{{message_stat.key_count}}</span>)
    </a>
    <a class="x-tab" data-tab-value="log.date" href="{{_server_home}}/message/dairy?tag=log.date">日期</a>
</div>

{% include message/component/script/tab_script.html %}

{% end %} <!-- show_tab end -->
