<div class="panel-group" id="accordionSidebar">
    {% if user.is_authenticated %}
    <div class="panel panel-primary">
        <div class="panel-heading">
            <h4 class="panel-title">
                <span class="glyphicon glyphicon-user btn-xs"></span>个人中心
            </h4>
        </div>
        <table class="table">
            <tbody>
            <tr>
                <td>
                    <span class="glyphicon glyphicon-asterisk btn-xs"></span><a href="{% url 'changepasswordurl' %}">修改密码</a>
                </td>
            </tr>
            <tr>
                <td>
                    <span class="glyphicon glyphicon-tags btn-xs"></span><a href="{% url 'vrflist' %}">投票记录</a>
                </td>
            </tr>
            <tr>
                <td>
                    <span class="glyphicon glyphicon-camera btn-xs"></span><a href="{% url 'mypwlist' %}">我的作品</a>
                </td>
            </tr>
        </tbody></table>
    </div>
    <div class="panel panel-primary">
        <div class="panel-heading">
            <h4 class="panel-title">
                <span class=" glyphicon glyphicon-heart btn-xs"></span>常用功能
            </h4>
        </div>
        <table class="table">
            <tbody>
            <tr>
                <td>
                    <span class="glyphicon glyphicon-picture btn-xs"></span><a href="{% url 'pwflist' %}">作品投票</a>
                </td>
            </tr>
        </tbody></table>
    </div>
    {% else %}
    <div class="panel panel-primary">
        <div class="panel-heading">
            <h4 class="panel-title">
                <span class="glyphicon glyphicon-user btn-xs"></span>个人中心
            </h4>
        </div>
        <table class="table">
            <tbody>
            <tr>
                <td>
                    <span class="glyphicon glyphicon-log-in btn-xs"></span><a href="{% url 'loginurl' %}">登陆</a>
                </td>
            </tr>
        </tbody></table>
    </div>
    <div class="panel panel-primary">
        <div class="panel-heading">
            <h4 class="panel-title">
                <span class=" glyphicon glyphicon-heart btn-xs"></span>常用功能
            </h4>
        </div>
        <table class="table">
            <tbody>
            <tr>
                <td>
                    <span class="glyphicon glyphicon-picture btn-xs"></span><a href="{% url 'pwflist' %}">作品欣赏</a>
                </td>
            </tr>
        </tbody></table>
    </div>
    {% endif %}
    {% block extmenu %}{% endblock %}
</div>