topic.html 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <div class="panel panel-default">
  2. <div class="panel-heading clearfix">
  3. <span style="float:right">
  4. 排序:
  5. <div class="btn-group btn-group-xs" role="group">
  6. <a href="" class="btn btn-default active">时间</a>
  7. <a href="" class="btn btn-default">投票</a>
  8. </div>
  9. </span>
  10. </div>
  11. {% if topics.items %}
  12. {% if setting.topic_list == 1 or (setting.topic_list == 2 and g.user.is_authenticated) or (g.user.is_authenticated and g.user.username == g.user_url) %}
  13. {% for topic in topics.items %}
  14. <div class="panel-body" style="border-bottom:1px solid #eee;font-size:16px;">
  15. <span style="color:#666">{{ topic.board.board }}</span>
  16. {{ link_base.topic(topic) }}
  17. <div style="font-size:12px;color:#999;">
  18. 创建日期:{{ topic.publish | timesince }}
  19. 最后回复来自
  20. {{ link_base.user(topic.author.username) }}
  21. </div>
  22. </div>
  23. {% endfor %}
  24. {{ p_footer(topics,'user.topic')}}
  25. {% else %}
  26. <div class="panel-body" style="border:1px dashed #337ab7;margin:5px;">
  27. <span class="text-center" style="display:block;width:100%;color:#999">
  28. <span class="glyphicon glyphicon-lock" aria-hidden="true" style="font-size:16px;"></span>
  29. 根据用户设置,列表被隐藏
  30. </span>
  31. </div>
  32. {% endif %}
  33. {% else %}
  34. <div class="panel-body text-center">
  35. 没有主题
  36. </div>
  37. {% endif %}
  38. </div>