replies.html 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. {% extends "misago/base.html" %}
  2. {% load humanize i18n misago_avatars misago_stringutils %}
  3. {% block title %}{{ thread.title }} | {{ block.super }}{% endblock title %}
  4. {% block meta-description %}{% if thread.first_post.is_valid %}{{ thread.first_post.short|striplinebreaks }} {% endif %}{% blocktrans trimmed with replies=thread.replies started=thread.started_on|date last_post=thread.last_post_on|date count counter=thread.replies %}
  5. {{ replies }} reply since {{ started }}. Last post on {{ last_post }}.
  6. {% plural %}
  7. {{ replies }} replies since {{ started }}. Last post on {{ last_post }}.
  8. {% endblocktrans %}{% endblock meta-description %}
  9. {% block content %}
  10. <div{% if forum.css %} class="page-{{ forum.css_class }}"{% endif %}>
  11. <div class="page-header">
  12. <div class="container">
  13. {% if path %}
  14. <ol class="breadcrumb">
  15. {% for crumb in path %}
  16. <li>
  17. <a href="{{ crumb.get_absolute_url }}">{{ crumb.name }}</a>{% if not forloop.last %}<span class="fa fa-chevron-right"></span>{% endif %}
  18. </li>
  19. {% endfor %}
  20. </ol>
  21. {% endif %}
  22. <h1>{{ thread.title }}</h1>
  23. <ul class="list-inline page-details">
  24. <li class="tooltip-bottom" title="{% trans "Thread autor" %}">
  25. {% if thread.starter_id %}
  26. <a href="{% url USER_PROFILE_URL user_slug=thread.starter_slug user_id=thread.starter_id %}">
  27. <img src="{{ thread.starter_id|avatar:20 }}" alt="{% trans "Avatar" %}"> {{ thread.starter_name }}
  28. </a>
  29. {% else %}
  30. <span class="fa fa-user"></span> {{ thread.starter_name }}
  31. {% endif %}
  32. <li>
  33. <li>
  34. <span class="fa fa-comment"></span> {% blocktrans trimmed with replies=thread.replies|intcomma count counter=thread.replies %}
  35. {{ replies }} reply
  36. {% plural %}
  37. {{ replies }} replies
  38. {% endblocktrans %}
  39. <li>
  40. <li class="tooltip-bottom" title="{% blocktrans with last_post=thread.last_post_on %}Last post from {{ last_post }}{% endblocktrans %}">
  41. <span class="fa fa-clock-o"></span>
  42. <abbr class="dynamic time-ago" data-timestamp="{{ thread.last_post_on|date:"c" }}">
  43. {{ thread.last_post_on|date }}
  44. </abbr>
  45. </li>
  46. </ul>
  47. </div>
  48. </div>
  49. <div class="container">
  50. <div class="table-actions">
  51. {% include "misago/thread/pagination.html" %}
  52. </div>
  53. <div class="posts-list">
  54. {% for post in posts %}
  55. {% include "misago/thread/post.html" %}
  56. {% endfor %}
  57. </div>
  58. <div class="table-actions">
  59. {% include "misago/thread/pagination.html" %}
  60. </div>
  61. </div>
  62. </div>
  63. {% endblock %}