base.html 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. {% extends "misago/base.html" %}
  2. {% load i18n %}
  3. {% block content %}
  4. <div class="page page-threads page-threads-{{ list_type|default:'all' }} {% spaceless %}
  5. {% block extra-css %}{% endblock extra-css %}
  6. {% endspaceless %}">
  7. {% block page-header %}
  8. {% endblock page-header %}
  9. <div class="container">
  10. {% block list-container %}
  11. {% if subcategories %}
  12. <div class="toolbar">
  13. <ul class="list-inline subcategories-list">
  14. {% for subcategory in subcategories %}
  15. <li>
  16. <a href="{{ subcategory.get_absolute_url }}{% if list_type != 'all' %}{{ list_type }}/{% endif %}" class="subcategory {% if subcategory.css_class %}subcategory-{{ subcategory.css_class }}{% endif %}">
  17. {{ subcategory.name }}
  18. </a>
  19. </li>
  20. {% endfor %}
  21. </ul>
  22. </div>
  23. {% endif %}
  24. <div class="threads-list ui-ready">
  25. {% block threads-list %}
  26. <ul class="list-group">
  27. {% for thread in threads %}
  28. {% block thread %}
  29. {% include "misago/threadslist/thread.html" %}
  30. {% endblock thread %}
  31. {% empty %}
  32. <li class="list-group-item empty-message">
  33. {% block list-empty-message %}
  34. {% if list_type == 'all' %}
  35. <p class="lead">
  36. {% if category.depth %}
  37. {% trans "There are no threads in this category." %}
  38. {% else %}
  39. {% trans "There are no threads on this forum... yet!" %}
  40. {% endif %}
  41. </p>
  42. <p>
  43. {% trans "Why not start one yourself?" %}
  44. </p>
  45. {% else %}
  46. {% trans "No threads matching specified criteria were found." %}
  47. {% endif %}
  48. {% endblock list-empty-message %}
  49. </li>
  50. {% endfor %}
  51. </ul>
  52. {% endblock threads-list %}
  53. </div>
  54. <noscript>
  55. {% if paginator.pages > 1 %}
  56. <nav>
  57. <ul class="pager">
  58. {% if paginator.previous %}
  59. <li class="previous">
  60. <a href="{{ REQUEST_PATH }}?page={{ paginator.previous }}">
  61. <span aria-hidden="true" class="material-icon">
  62. arrow_back
  63. </span>
  64. </a>
  65. </li>
  66. {% elif paginator.first %}
  67. <li class="previous">
  68. <a href="{{ REQUEST_PATH }}">
  69. <span aria-hidden="true" class="material-icon">
  70. arrow_back
  71. </span>
  72. </a>
  73. </li>
  74. {% endif %}
  75. {% if paginator.next %}
  76. <li class="next">
  77. <a href="{{ REQUEST_PATH }}?page={{ paginator.next }}">
  78. <span aria-hidden="true" class="material-icon">
  79. arrow_forward
  80. </span>
  81. </a>
  82. </li>
  83. {% endif %}
  84. </ul>
  85. </nav>
  86. {% endif %}
  87. </noscript>
  88. {% endblock list-container %}
  89. </div>
  90. </div>
  91. {% endblock content %}