private_threads.html 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. {% extends "misago/threadslist/base.html" %}
  2. {% load i18n misago_shorthands misago_stringutils %}
  3. {% block title %}
  4. {% if list_name %}
  5. {% if paginator.page > 1 %}
  6. {{ list_name }} ({% blocktrans with page=paginator.page %}page: {{ page }}{% endblocktrans %}) | {{ category }} | {{ block.super }}
  7. {% else %}
  8. {{ list_name }} | {{ category }} | {{ block.super }}
  9. {% endif %}
  10. {% elif paginator.page > 1 %}
  11. {{ category }} ({% blocktrans with page=paginator.page %}page: {{ page }}{% endblocktrans %}) | {{ block.super }}
  12. {% else %}
  13. {{ category }} | {{ block.super }}
  14. {% endif %}
  15. {% endblock title %}
  16. {% block extra-css %}
  17. page-private-threads
  18. {% endblock extra-css %}
  19. {% block page-header %}
  20. <div class="page-header tabbed">
  21. <div class="container">
  22. <a href="{{ category.parent.get_absolute_url }}{% if list_type != 'all' %}{{ list_type }}/{% endif %}" class="btn btn-default btn-aligned btn-icon btn-go-back pull-left">
  23. <span class="material-icon">
  24. keyboard_arrow_left
  25. </span>
  26. </a>
  27. <h1 class="pull-left">
  28. {{ category }}
  29. </h1>
  30. </div>
  31. {% if user.is_authenticated %}
  32. {% include "misago/threadslist/tabs.html" with hide_unapproved=True %}
  33. {% endif %}
  34. </div>
  35. {% endblock page-header %}
  36. {% block list-container %}
  37. <div class="category-description">
  38. <div class="page-lead">
  39. <p>{% trans "Private threads are threads which only those that started them and those they have invited may see and participate in." %}</p>
  40. </div>
  41. </div>
  42. {{ block.super }}
  43. {% endblock list-container%}
  44. {% block thread %}
  45. {% include "misago/threadslist/thread.html" with hide_path=True %}
  46. {% endblock thread %}
  47. {% block list-empty-message %}
  48. {% if list_type == 'all' %}
  49. <p class="lead">
  50. {% trans "You aren't participating in any private threads." %}
  51. </p>
  52. {% else %}
  53. {% trans "No threads matching specified criteria were found." %}
  54. {% endif %}
  55. {% endblock list-empty-message %}