123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113 |
- {% extends "misago/base.html" %}
- {% load i18n %}
- {% block meta-extra %}
- <link rel="canonical" href="{{ REQUEST_PATH }}" />
- {% if paginator.previous > 1 %}
- <link rel="prev" href="{{ REQUEST_PATH }}?page={{ paginator.previous }}" />
- {% elif paginator.first %}
- <link rel="prev" href="{{ REQUEST_PATH }}" />
- {% endif %}
- {% if paginator.next %}
- <link rel="next" href="{{ REQUEST_PATH }}?page={{ paginator.next }}" />
- {% endif %}
- {% endblock meta-extra %}
- {% block content %}
- <div class="page page-threads page-threads-{{ list_type|default:'all' }} {% spaceless %}
- {% block extra-css %}{% endblock extra-css %}
- {% endspaceless %}">
- {% block page-header %}
- {% endblock page-header %}
- <div class="container">
- {% block list-container %}
- {% if subcategories %}
- <section class="toolbar">
- <ul class="list-inline subcategories-list">
- {% for subcategory in subcategories %}
- <li>
- <a href="{{ subcategory.get_absolute_url }}{% if list_type != 'all' %}{{ list_type }}/{% endif %}" class="subcategory {% if subcategory.css_class %}subcategory-{{ subcategory.css_class }}{% endif %}">
- {{ subcategory.name }}
- </a>
- </li>
- {% endfor %}
- </ul>
- </section>
- {% endif %}
- <section>
- <div class="threads-list ui-ready">
- {% block threads-list %}
- <ul class="list-group">
- {% for thread in threads %}
- {% block thread %}
- {% include "misago/threadslist/thread.html" %}
- {% endblock thread %}
- {% empty %}
- <li class="list-group-item empty-message">
- {% block list-empty-message %}
- {% if list_type == 'all' %}
- <p class="lead">
- {% if category.depth %}
- {% trans "There are no threads in this category." %}
- {% else %}
- {% trans "There are no threads on this forum... yet!" %}
- {% endif %}
- </p>
- <p>
- {% trans "Why not start one yourself?" %}
- </p>
- {% else %}
- {% trans "No threads matching specified criteria were found." %}
- {% endif %}
- {% endblock list-empty-message %}
- </li>
- {% endfor %}
- </ul>
- {% endblock threads-list %}
- </div>
- <noscript>
- {% if paginator.pages > 1 %}
- <nav>
- <ul class="pager">
- {% if paginator.previous %}
- <li class="previous">
- <a href="{{ REQUEST_PATH }}?page={{ paginator.previous }}">
- <span aria-hidden="true" class="material-icon">
- arrow_back
- </span>
- </a>
- </li>
- {% elif paginator.first %}
- <li class="previous">
- <a href="{{ REQUEST_PATH }}">
- <span aria-hidden="true" class="material-icon">
- arrow_back
- </span>
- </a>
- </li>
- {% endif %}
- {% if paginator.next %}
- <li class="next">
- <a href="{{ REQUEST_PATH }}?page={{ paginator.next }}">
- <span aria-hidden="true" class="material-icon">
- arrow_forward
- </span>
- </a>
- </li>
- {% endif %}
- </ul>
- </nav>
- {% endif %}
- </noscript>
- </section>
- {% endblock list-container %}
- </div>
- </div>
- {% endblock content %}
|