reply_list.html 1018 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. {% from 'reply/_macro.html' import title %}
  2. {% from 'reply/_macro.html' import body %}
  3. {% from 'reply/_macro.html' import reply_form %}
  4. {% from 'base/paginate.html' import footer as p_footer %}
  5. <style>
  6. .like-active {
  7. color:#a40004;
  8. }
  9. .like-no-active {
  10. color:#ccc;
  11. }
  12. .reply-order a{
  13. padding: 1px 2px;
  14. color: #778087;
  15. text-decoration: none;
  16. font-size:13px;
  17. }
  18. .reply-count {
  19. font-size:12px;
  20. color:#999;
  21. }
  22. .reply-content a {
  23. color:#778087;
  24. }
  25. </style>
  26. {% set topicId = request.args.get('topicId') %}
  27. <div class="panel panel-default">
  28. {{ title(topicId,replies) }}
  29. {% set num = 1 %}
  30. {% for reply in replies.items %}
  31. {{ body(reply) }}
  32. {% set num = num + 1 %}
  33. {% else %}
  34. <div class="panel-body">
  35. <span class="text-center" style="display:block;width:100%;color:#999">
  36. {{_('no replies')}}
  37. </span>
  38. </div>
  39. {% endfor %}
  40. {{ p_footer(replies,'topic.topic',dict(topicId=topicId))}}
  41. </div>
  42. {{ reply_form(form) }}