12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- <div class="panel panel-default">
- <div class="panel-heading clearfix">
- <span style="float:right">
- 排序:
- <div class="btn-group btn-group-xs" role="group">
- {% if request.args.get('orderby') == 'like' %}
- <a href="{{ url_for('user.reply',orderby='publish')}}" class="btn btn-default">时间</a>
- <a href="{{ url_for('user.reply',orderby='like')}}" class="btn btn-default active">点赞</a>
- {% else %}
- <a href="" class="btn btn-default active">时间</a>
- <a href="{{ url_for('user.reply',orderby='like')}}" class="btn btn-default">点赞</a>
- {% endif %}
- </div>
- </span>
- </div>
- {% if replies.items %}
- {% if setting.rep_list == 1 or (g.user.is_authenticated and setting.rep_list == 2) or (g.user.is_authenticated and g.user.username == g.user_url) %}
- {% for reply in replies.items %}
- <div class="panel-body" style="border-bottom:1px solid #eee">
- <span style="font-size:12px;color:#999;">回复了 {{ link_base.user(reply.author) }} 创建的主题:
- <a href="{{ url_for('topic.topic',uid=reply.topic.uid)}}">{{ reply.topic.title}}</a>
- </span>
- <p>{{ reply.content | safe_clean }}</p>
- <span style="font-size:12px;color:#999;">
- 回复日期:{{ reply.publish | timesince }}
- </span>
- </div>
- {% endfor %}
- {{ p_footer(replies,'user.reply')}}
- {% else %}
- <div class="panel-body" style="border:1px dashed #337ab7;margin:5px;">
- <span class="text-center" style="display:block;width:100%;color:#999">
- <span class="glyphicon glyphicon-lock" aria-hidden="true" style="font-size:16px;"></span>
- 根据用户设置,列表被隐藏
- </span>
- </div>
- {% endif %}
- {% else %}
- <div class="panel-body text-center">
- 没有回复
- </div>
- {% endif %}
- </div>
|