replies.html 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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. Blah blah blah!
  51. </div>
  52. </div>
  53. {% endblock %}