2022-05-04 23:09:46 +00:00
|
|
|
{% extends "default.html" %}
|
|
|
|
|
2022-11-21 08:52:22 +00:00
|
|
|
{% block pagetitle %}All Comments{% endblock %}
|
2022-05-04 23:09:46 +00:00
|
|
|
{% block PseudoSubmitForm %}{% endblock %}
|
|
|
|
{% block sortnav %}{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
2022-10-29 00:38:39 +00:00
|
|
|
<div class="d-flex justify-content-between align-items-center mt-1">
|
2022-05-04 23:09:46 +00:00
|
|
|
|
2022-10-29 01:31:25 +00:00
|
|
|
<div class="d-flex px-2 align-items-center mt-4">
|
2022-05-04 23:09:46 +00:00
|
|
|
<div class="dropdown dropdown-actions">
|
2022-12-25 02:10:56 +00:00
|
|
|
<button type="button" class="btn btn-secondary dropdown-toggle" id="dropdownMenuButton" data-bs-toggle="dropdown">
|
2022-05-04 23:09:46 +00:00
|
|
|
{% if t=="hour" %}<i class="fas fa-clock mr-1"></i>
|
|
|
|
{% elif t=="day" %}<i class="fas fa-calendar-day mr-1"></i>
|
|
|
|
{% elif t=="week" %}<i class="fas fa-calendar-week mr-1"></i>
|
|
|
|
{% elif t=="month" %}<i class="fas fa-calendar-alt mr-1"></i>
|
|
|
|
{% elif t=="year" %}<i class="fas fa-calendar mr-1"></i>
|
|
|
|
{% elif t=="all" %}<i class="fas fa-infinity mr-1"></i>
|
|
|
|
{% endif %}
|
|
|
|
{{t | capitalize}}
|
|
|
|
</button>
|
2022-12-25 02:10:56 +00:00
|
|
|
<div class="dropdown-menu" x-placement="bottom-start" style="position: absolute; will-change: transform; top: 0px; left: 0px; transform: translate3d(0px, 31px, 0px);">
|
2022-05-04 23:09:46 +00:00
|
|
|
{% if t !="hour" %}<a class="dropdown-item" href="?sort={{sort}}&t=hour"><i class="fas fa-clock mr-2"></i>Hour</a>{% endif %}
|
|
|
|
{% if t !="day" %}<a class="dropdown-item" href="?sort={{sort}}&t=day"><i class="fas fa-calendar-day mr-2"></i>Day</a>{% endif %}
|
|
|
|
{% if t !="week" %}<a class="dropdown-item" href="?sort={{sort}}&t=week"><i class="fas fa-calendar-week mr-2"></i>Week</a>{% endif %}
|
|
|
|
{% if t !="month" %}<a class="dropdown-item" href="?sort={{sort}}&t=month"><i class="fas fa-calendar-alt mr-2"></i>Month</a>{% endif %}
|
|
|
|
{% if t !="year" %}<a class="dropdown-item" href="?sort={{sort}}&t=year"><i class="fas fa-calendar mr-2"></i>Year</a>{% endif %}
|
|
|
|
{% if t !="all" %}<a class="dropdown-item" href="?sort={{sort}}&t=all"><i class="fas fa-infinity mr-2"></i>All</a>{% endif %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2022-10-29 01:31:25 +00:00
|
|
|
<div class="dropdown dropdown-actions ml-3">
|
2022-12-25 02:10:56 +00:00
|
|
|
<button type="button" class="btn btn-secondary dropdown-toggle" id="dropdownMenuButton2" data-bs-toggle="dropdown">
|
2022-05-04 23:09:46 +00:00
|
|
|
{% if sort=="top" %}<i class="fas fa-arrow-alt-circle-up mr-1"></i>{% endif %}
|
|
|
|
{% if sort=="bottom" %}<i class="fas fa-arrow-alt-circle-down mr-1"></i>{% endif %}
|
|
|
|
{% if sort=="new" %}<i class="fas fa-sparkles mr-1"></i>{% endif %}
|
|
|
|
{% if sort=="old" %}<i class="fas fa-book mr-1"></i>{% endif %}
|
|
|
|
{% if sort=="controversial" %}<i class="fas fa-bullhorn mr-1"></i>{% endif %}
|
|
|
|
{{sort | capitalize}}
|
|
|
|
</button>
|
2022-12-25 02:10:56 +00:00
|
|
|
<div class="dropdown-menu" x-placement="bottom-start" style="position: absolute; will-change: transform; top: 0px; left: 0px; transform: translate3d(0px, 31px, 0px);">
|
2022-05-04 23:09:46 +00:00
|
|
|
{% if sort != "top" %}<a class="dropdown-item" href="?sort=top&t={{t}}"><i class="fas fa-arrow-alt-circle-up mr-2"></i>Top</a>{% endif %}
|
|
|
|
{% if sort != "bottom" %}<a class="dropdown-item" href="?sort=bottom&t={{t}}"><i class="fas fa-arrow-alt-circle-down mr-2"></i>Bottom</a>{% endif %}
|
|
|
|
{% if sort != "new" %}<a class="dropdown-item" href="?sort=new&t={{t}}"><i class="fas fa-sparkles mr-2"></i>New</a>{% endif %}
|
|
|
|
{% if sort != "old" %}<a class="dropdown-item" href="?sort=old&t={{t}}"><i class="fas fa-book mr-2"></i>Old</a>{% endif %}
|
|
|
|
{% if sort != "controversial" %}<a class="dropdown-item" href="?sort=controversial&t={{t}}"><i class="fas fa-bullhorn mr-2"></i>Controversial</a>{% endif %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row no-gutters {% if listing %}mt-md-3{% elif not listing %}my-md-3{% endif %}">
|
|
|
|
|
|
|
|
<div class="col-12 px-3">
|
|
|
|
|
|
|
|
<div class="posts" id="posts">
|
|
|
|
|
|
|
|
{% include "comments.html" %}
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block pagenav %}
|
2022-12-25 02:10:56 +00:00
|
|
|
<nav>
|
2022-05-04 23:09:46 +00:00
|
|
|
<ul class="pagination pagination-sm mb-0">
|
|
|
|
{% if page>1 %}
|
|
|
|
<li class="page-item">
|
|
|
|
<small><a class="page-link" href="?page={{page-1}}&sort={{sort}}&t={{t}}" tabindex="-1">Prev</a></small>
|
|
|
|
</li>
|
|
|
|
{% else %}
|
|
|
|
<li class="page-item disabled"><span class="page-link">Prev</span></li>
|
|
|
|
{% endif %}
|
|
|
|
{% if next_exists %}
|
|
|
|
<li class="page-item">
|
|
|
|
<small><a class="page-link" href="?page={{page+1}}&sort={{sort}}&t={{t}}">Next</a></small>
|
|
|
|
</li>
|
|
|
|
{% else %}
|
|
|
|
<li class="page-item disabled"><span class="page-link">Next</span></li>
|
|
|
|
{% endif %}
|
|
|
|
</ul>
|
|
|
|
</nav>
|
2022-10-28 23:31:39 +00:00
|
|
|
{% endblock %}
|