thread.html 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. {% extends "misago/base.html" %}
  2. {% load i18n %}
  3. {% block title %}
  4. {% if paginator.page > 1 %}
  5. {{ thread.title }} ({% blocktrans with page=paginator.page %}page: {{ page }}{% endblocktrans %}) | {{ category.name }} | {{ block.super }}
  6. {% else %}
  7. {{ thread.title }} | {{ category.name }} | {{ block.super }}
  8. {% endif %}
  9. {% endblock title %}
  10. {% block meta-extra %}
  11. {% if paginator.page > 1 %}
  12. <link rel="canonical" href="{% url url_name slug=thread.slug pk=thread.pk page=paginator.page %}" />
  13. {% else %}
  14. <link rel="canonical" href="{% url url_name slug=thread.slug pk=thread.pk %}" />
  15. {% endif %}
  16. {% if paginator.previous > 1 %}
  17. <link rel="prev" href="{% url url_name slug=thread.slug pk=thread.pk page=paginator.previous %}" />
  18. {% elif paginator.first %}
  19. <link rel="prev" href="{% url url_name slug=thread.slug pk=thread.pk %}" />
  20. {% endif %}
  21. {% if paginator.next %}
  22. <link rel="next" href="{% url url_name slug=thread.slug pk=thread.pk page=paginator.next %}" />
  23. {% endif %}
  24. {% endblock meta-extra %}
  25. {% block content %}
  26. <div class="page page-thread {% if category.css_class %}page-thread-{{ category.css_class }}{% endif %}">
  27. <div class="page-header with-stats with-breadcrumbs">
  28. {% include "misago/thread/breadcrumbs.html" %}
  29. <div class="container">
  30. <h1>{{ thread.title }}</h1>
  31. </div>
  32. {% include "misago/thread/stats.html" %}
  33. </div>
  34. <div class="container">
  35. {% include "misago/thread/toolbar-top.html" %}
  36. {% if thread.poll %}
  37. {% include "misago/poll/index.html" with poll=thread.poll %}
  38. {% endif %}
  39. {% include "misago/thread/posts/index.html" %}
  40. {% include "misago/thread/paginator.html" %}
  41. </div>
  42. </div>
  43. {% endblock content %}