private_threads.html 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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">
  21. <div class="container">
  22. <div class="row">
  23. <div class="col-md-8">
  24. <div class="row">
  25. <div class="col-xs-12">
  26. <h1>{{ category }}</h1>
  27. </div>
  28. </div>
  29. </div>
  30. </div>
  31. </div>
  32. {% if user.is_authenticated %}
  33. {% include "misago/threadslist/tabs.html" with hide_unapproved=True %}
  34. {% endif %}
  35. </div>
  36. {% endblock page-header %}
  37. {% block list-container %}
  38. <div class="category-description">
  39. <div class="page-lead">
  40. <p>{% trans "Private threads are threads which only those that started them and those they have invited may see and participate in." %}</p>
  41. </div>
  42. </div>
  43. {{ block.super }}
  44. {% endblock list-container%}
  45. {% block thread %}
  46. {% include "misago/threadslist/thread.html" with hide_path=True %}
  47. {% endblock thread %}
  48. {% block list-empty-message %}
  49. {% if list_type == 'all' %}
  50. <p class="lead">
  51. {% trans "You aren't participating in any private threads." %}
  52. </p>
  53. <p>
  54. {% trans "Why not start one yourself?" %}
  55. </p>
  56. {% else %}
  57. {% trans "No threads matching specified criteria were found." %}
  58. {% endif %}
  59. {% endblock list-empty-message %}