{% extends 'comment.html' %}<br />{% block subComment %}<br /> <ul class="list-group" style=""><br /> <h1>全部问题</h1><br /> {% for foo in questions %}<br /> <li class="list-group-item" style="width: 800px"><br /> <a class="wrap-img" href="#" target="_blank"><br /> <img src="http://www.bookmarkye.com/3.jpg" width="50px"><br /> </a><br /> <br /> <a href="{{ url_for('comment',user_id=foo.author.id ,num='1')}}"<br /> target="_blank">{{ foo.author.username }}</a><br /> <br><br /> <a href="{{ url_for('detail',question_id=foo.id) }}">{{ foo.title }}</a><br /> {{ foo.creat_time }}<br /> <p style="">{{ foo.detail }}<br /> </p><br /> </li><br /><br /> {% endfor %}<br /> </ul><br />{% endblock %}
<ul class="list-group" style="margin-top: 30px;"><br /> <h1>全部评论</h1><br /> {% for com in comment %}<br /> <li class="list-group-item" style="width: 800px"><br /> <a class="wrap-img" href="#" target="_blank"><br /> <img src="http://www.bookmarkye.com/3.jpg" width="50px"><br /> </a><br /> <br /> <a href="{{ url_for('comment',user_id=com.author.id,num='1') }}"<br /> target="_blank">{{ com.author.username }}</a><br /> <br><br /> {{ com.creat_time }}<br /> <p style="">{{ com.detail }}</p><br /> </li><br /> {% endfor %}<br /></ul>
<div class="list-group-item" style="margin-top: 30px;width: 800px;"><br /> <h1>名称:<br /> <small>{{ user2.username }}</small><br /> </h1><br /> <h1>问题数:<br /> <small>{{ questions|length }}</small><br /> </h1><br /> <h1>评论数:<br /> <small>{{ comment|length }}</small><br /> </h1><br /></div>