<div class="top_right" th:fragment="header-tool">

    <th:block sec:authorize="isAuthenticated()">
        <div class="top_tool">
            <a class="com_msg_btn" href="#msg_modal" check="0" uk-toggle>
                <i class="ri-notification-2-line"></i>
            </a>
        </div>
         <div class="t_login top_tool icon_color" th:if="${pluginFinder.available('PluginMoments')}">
            <a  class="normal_edit" uk-toggle="target: #create_post_box"><i class="ri-edit-box-line"></i></a>
        </div>

        <div class="admin_ava">
            <a class="mobile_edit" uk-toggle="target: #create_post_box"><i class="ri-add-line"></i></a>
            <div id="top_ava" class="top_ava"><img th:src="${user.avatar}"></div>
            <div class="user_pannel round12" uk-dropdown="mode: click;toggle:#top_ava;pos:bottom-right;animation:uk-animation-slide-top-small">
                <div class="inner">
                    <a href="/console" target="_blank" pjax="exclude"><i class="ri-function-line"></i>管理面板</a>
                    <a class="logout" href="javascript:void(0);" onclick="open_logout_box()"><i class="ri-logout-circle-r-line"></i>退出登录</a>
                </div>

            </div>
        </div>
    </th:block>

    <div sec:authorize="isAnonymous()" class="top_tool">
        <a th:if="${theme.config.base_set.login_button}" onclick="open_login_box()"><i class="ri-user-3-line"></i></a>
    </div>

</div>

<div class="top_right" id="top_third" th:fragment="header-tool-third">

    <th:block sec:authorize="isAuthenticated()">
        <div class="top_tool">
            <a class="com_msg_btn" href="#msg_modal" check="0" uk-toggle>
                <i class="ri-notification-2-line"></i>
            </a>
        </div>
        <div class="t_login top_tool icon_color" th:if="${pluginFinder.available('PluginMoments')}">
            <a  class="normal_edit" uk-toggle="target: #create_post_box"><i class="ri-edit-box-line"></i></a>
        </div>

        <div class="admin_ava">
            <a class="mobile_edit" uk-toggle="target: #create_post_box"><i class="ri-add-line"></i></a>
            <div id="top_ava2" class="top_ava"><img th:src="${user.avatar}"></div>
            <div class="user_pannel round12" uk-dropdown="mode: click;toggle:#top_ava2;pos:bottom-right;animation:uk-animation-slide-top-small">
                <div class="inner">
                    <a href="/console" target="_blank" pjax="exclude"><i class="ri-function-line"></i>管理面板</a>
                    <a class="logout" href="javascript:void(0);" onclick="open_logout_box()"><i class="ri-logout-circle-r-line"></i>退出登录</a>
                </div>

            </div>
        </div>
    </th:block>

    <div sec:authorize="isAnonymous()" class="top_tool">
        <a th:if="${theme.config.base_set.login_button}" onclick="open_login_box()"><i class="ri-user-3-line"></i></a>
    </div>

</div>