content.html 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. {% extends 'base/base.html' %}
  2. {% block content %}
  3. <ol class="breadcrumb" style="margin-bottom:0;">
  4. {% set board = topic.board %}
  5. <li><a href="{{ url_for('forums.forums') }}"><span class="glyphicon glyphicon-home" aria-hidden="true"></span>社区首页</a></li>
  6. <li><a href="{{ url_for('board.board',parent_b=board.parent_board)}}">{{ board.parent_board }}</a></li>
  7. <li><a href="{{ url_for('board.board',parent_b=board.parent_board,child_b=board.board)}}">{{ board.board }}</a></li>
  8. <li class="active">{{ topic.title }}</li>
  9. </ol>
  10. {% set last_reply = topic.replies.first() %}
  11. <div class="row">
  12. <div class="col-md-9">
  13. <div class="panel panel-default">
  14. <div class="panel-heading media ">
  15. <div class="media-body">
  16. <h2 class="media-heading">{{ topic.title}}</h2>
  17. <small style="color:#999">
  18. {% for tag in topic.tags %}
  19. {{ link_base.tag(tag) }}
  20. {% endfor %}
  21. <br/>
  22. {{ link_base.user(topic.author.username )}}
  23. 于 <abbr class="timeago" title="{{ topic.publish}}">{{ topic.publish}}</abbr>发布
  24. {% if last_reply %}
  25. 最后由{{ link_base.user(last_reply.author.username )}}于
  26. <abbr class="timeago" title="{{ topic.publish}}">{{ last_reply.publish}}</abbr>回复
  27. {% endif %}
  28. </small>
  29. </div>
  30. <div class="media-right">
  31. <a href="{{ url_for('user.user',user_url=topic.author.username)}}">
  32. <img class="media-object img-circle" src="{{ url_for('static',filename='images/Moo.png')}}" alt="..." style="width:64px;height:64px">
  33. </a>
  34. </div>
  35. </div>
  36. <div class="panel-body">
  37. {{ topic.content}}
  38. </div>
  39. </div>
  40. {% include 'topic/replies.html' %}
  41. </div>
  42. <div class="col-md-3" style="padding-left:0">
  43. {% include 'topic/panel.html' %}
  44. </div>
  45. </div>
  46. {% endblock %}