{% extends 'daohang.html' %}
{% block title %}个人中心{% endblock %}
{% block head %}
<style>
.nav_ul li {
list-style: none;
float: left;
margin: 10px;
}
</style>
{% endblock %}
{% block main %}
<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>
{% block user %}{% endblock %}
{% endblock %}
{% extends 'user.html' %}
{% block title %}个人中心{% endblock %}
{% block user %}
<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 question %}
<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.create_time }}</span>
<p>{{ 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.create_time }}</span>
<p>{{ 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 %}