码迷,mamicode.com
首页 > 其他好文 > 详细

个人中心标签页导航

时间:2017-12-14 04:06:14      阅读:118      评论:0      收藏:0      [点我收藏+]

标签:提问   phi   pos   hid   htm   empty   badge   xtend   rbo   

usercenter 代码

<ul class="nav_ul">
    <li role="presentation"><a href="#">全部提问</a></li>
    <li role="presentation"><a href="#">全部评论</a></li>
    <li role="presentation"><a href="#">个人信息</a></li>
</ul>
{% extends "user.html" %}

{% block usercenterbody %}
    <div class="page-header">
        <h3><span class="glyphicon glyphicon-user" aria-hidden="true"></span>{{ username }}<br><small>全部问答<span class="badge>"></span> </small> </h3>
        <ul class="list-group"style="margin:10px">
            {% for foo in comments %}
                <li class="list-group-item">
                    <span class="glyphicon glyphicon-heart-empty" aria-hidden="true"></span>
                    <a href="#">{{ foo.author.username }}</a>
                    <span class="badge">{{ foo.creat_time }}</span>
                    <p style="align-content: center">{{ foo.detail }}</p>
                </li>
            {% endfor %}
        </ul>
    </div>

    <div class="page-header">
        <h3><span class="glyphicon glyphicon-user" aria-hidden="true"></span>{{ user }}<br><small>全部评论<span class="badge>"></span> </small> </h3>
        <ul class="list-group"style="margin:10px">
            {% for foo in comments %}
                <li class="list-group-item">
                    <span class="glyphicon glyphicon-heart-empty" aria-hidden="true"></span>
                    <a href="#">{{ foo.author.username }}</a>
                    <span class="badge">{{ foo.creat_time }}</span>
                    <p style="align-content: center">{{ foo.detail }}</p>
                </li>
            {% endfor %}
        </ul>

    </div>

    <div class="page-header">
        <h3><span class="glyphicon glyphicon-user" aria-hidden="true"></span>{{ user }}<br><small>个人信息<span class="badge>"></span> </small> </h3>
        <ul class="list-group"style="margin:10px">
            <li class="list-group-item">用户:{{ username }}</li>
            <li class="list-group-item">编号:</li>
            <li class="list-group-item">昵称:</li>
        </ul>
    </div>
{% endblock %}

 

个人中心标签页导航

标签:提问   phi   pos   hid   htm   empty   badge   xtend   rbo   

原文地址:http://www.cnblogs.com/honghui/p/8035177.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!