2021-12-19 13:01:28 +00:00
|
|
|
{% extends "CHRISTMAS/default.html" %}
|
2021-12-14 22:48:37 +00:00
|
|
|
|
|
|
|
{% block subHeader %}
|
|
|
|
<div class="relative max-w-screen-2xl mx-auto px-4 py-4 grid grid-cols-12 rounded-t">
|
2021-12-19 04:54:22 +00:00
|
|
|
<div class="absolute top-0 left-0 w-full h-full bg-gradient-to-t from-gray-300 to-gray-200 dark:bg-none dark:bg-gray-800 rounded-t sub-header-shadow dark:border-b dark:border-gray-700"></div>
|
2021-12-14 22:48:37 +00:00
|
|
|
<div class="relative col-span-full flex items-center">
|
|
|
|
<div>
|
|
|
|
<h1 class="font-bold text-xl font-heading leading-normal mb-0">
|
|
|
|
Comments
|
|
|
|
</h1>
|
2021-12-19 04:55:05 +00:00
|
|
|
<small class="block text-gray-700 dark:text-gray-400">
|
2021-12-14 22:48:37 +00:00
|
|
|
<span class="capitalize font-bold">{{ sort }}</span>
|
|
|
|
comments {{ 'from all time' if t=='all' else 'in the last' }}
|
|
|
|
{% if t != 'all' %}<strong>{{ t }}</strong>{% endif %}
|
|
|
|
</small>
|
|
|
|
</div>
|
|
|
|
<div class="ml-auto">
|
2021-12-19 13:01:28 +00:00
|
|
|
{% include "CHRISTMAS/dropdowns/SubmissionSorts.html" %}
|
2021-12-14 22:48:37 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
<!-- Comments list -->
|
2021-12-19 21:36:39 +00:00
|
|
|
<div class="col-span-full px-2.5 md:px-0 dark:bg-gray-800" id="posts">
|
2021-12-19 13:01:28 +00:00
|
|
|
{% include "CHRISTMAS/comments.html" %}
|
2021-12-14 22:48:37 +00:00
|
|
|
</div>
|
|
|
|
<!-- Pagination -->
|
|
|
|
<div class="col-span-full">
|
|
|
|
<ul class="flex flex-wrap items-center mb-4">
|
|
|
|
{% if page>1 %}
|
|
|
|
<li>
|
|
|
|
<a class="block px-2 py-1 text-sm font-bold text-gray-700 hover:text-gray-900 bg-gray-300 hover:bg-gray-400 active:shadow-inner" href="?page={{page-1}}&sort={{sort}}&t={{t}}" tabindex="-1">
|
|
|
|
Prev
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
{% else %}
|
|
|
|
<li><span class="block px-2 py-1 text-sm font-bold text-gray-400 bg-gray-300/50 disabled">Prev</span></li>
|
|
|
|
{% endif %}
|
|
|
|
{% if next_exists %}
|
|
|
|
<li class="page-item">
|
|
|
|
<a class="block px-2 py-1 text-sm font-bold text-gray-700 hover:text-gray-900 bg-gray-300 hover:bg-gray-400 active:shadow-inner" href="?page={{page+1}}&sort={{sort}}&t={{t}}">Next</a>
|
|
|
|
</li>
|
|
|
|
{% else %}
|
|
|
|
<li><span class="block px-2 py-1 text-sm font-bold text-gray-400 bg-gray-300/50 disabled">Next</span></li>
|
|
|
|
{% endif %}
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|