2021-10-15 14:08:27 +00:00
|
|
|
{% extends "default.html" %}
|
|
|
|
|
2021-11-24 16:48:06 +00:00
|
|
|
{% block subHeader %}
|
2021-11-29 06:55:44 +00:00
|
|
|
<div class="relative max-w-screen-2xl mx-auto px-4 py-4 grid grid-cols-12 rounded-t">
|
2021-11-29 07:11:21 +00:00
|
|
|
<div class="absolute top-0 left-0 w-full h-full bg-gradient-to-t from-gray-300 to-gray-200 rounded-t sub-header-shadow"></div>
|
2021-11-24 16:48:06 +00:00
|
|
|
<div class="relative col-span-full flex items-center">
|
|
|
|
<div>
|
2021-12-02 02:40:25 +00:00
|
|
|
<h1 class="font-bold text-xl font-heading leading-normal mb-0">
|
2021-11-24 16:48:06 +00:00
|
|
|
Home
|
|
|
|
</h1>
|
2021-11-28 17:15:23 +00:00
|
|
|
<small class="block text-gray-700">
|
2021-11-24 16:48:06 +00:00
|
|
|
<span class="capitalize font-bold">{{ sort }}</span>
|
|
|
|
posts {{ 'from all time' if t=='all' else 'in the last' }}
|
|
|
|
{% if t != 'all' %}<span class="font-bold">{{ t }}{% endif %}
|
|
|
|
</small>
|
2021-10-15 14:08:27 +00:00
|
|
|
</div>
|
2021-11-24 16:48:06 +00:00
|
|
|
<div class="ml-auto">
|
|
|
|
{% include "/dropdowns/SubmissionSorts.html" %}
|
2021-10-15 14:08:27 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2021-11-24 16:48:06 +00:00
|
|
|
{% endblock %}
|
2021-10-15 14:08:27 +00:00
|
|
|
|
2021-12-06 07:02:52 +00:00
|
|
|
{% block desktopBanner %}
|
|
|
|
{% endblock %}
|
|
|
|
|
2021-10-15 14:08:27 +00:00
|
|
|
{% block content %}
|
2021-11-24 16:48:06 +00:00
|
|
|
<div class="col-span-full xl:col-span-9">
|
2021-10-15 14:08:27 +00:00
|
|
|
|
2021-11-30 17:56:02 +00:00
|
|
|
<ul class="flex flex-col sm:py-4 my-2.5 sm:my-0" id="posts">
|
2021-11-24 16:48:06 +00:00
|
|
|
{% include "submission_listing.html" %}
|
|
|
|
</ul>
|
2021-10-15 14:08:27 +00:00
|
|
|
|
2021-11-25 04:00:29 +00:00
|
|
|
{% if listing %}
|
|
|
|
<nav aria-label="Page navigation">
|
|
|
|
<ul class="pagination pagination-sm mb-0">
|
|
|
|
{% if page>1 %}
|
|
|
|
<li class="page-item">
|
|
|
|
<small><a class="page-link" href="?sort={{sort}}&page={{page-1}}&t={{t}}{% if only %}&only={{only}}{% endif %}" 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="?sort={{sort}}&page={{page+1}}&t={{t}}{% if only %}&only={{only}}{% endif %}">Next</a></small>
|
|
|
|
</li>
|
|
|
|
{% else %}
|
|
|
|
<li class="page-item disabled"><span class="page-link">Next</span></li>
|
|
|
|
{% endif %}
|
|
|
|
</ul>
|
|
|
|
</nav>
|
|
|
|
{% endif %}
|
2021-10-15 14:08:27 +00:00
|
|
|
|
2021-11-25 04:00:29 +00:00
|
|
|
</div>
|
2021-11-24 16:48:06 +00:00
|
|
|
{% endblock %}
|
2021-10-15 14:08:27 +00:00
|
|
|
|
2021-11-24 16:48:06 +00:00
|
|
|
<!-- Sidebar -->
|
|
|
|
{% block sidebar %}
|
|
|
|
{% include "/sidebars/HomeSidebar.html" %}
|
|
|
|
{% endblock %}
|
2021-10-15 14:08:27 +00:00
|
|
|
|
2021-11-24 16:48:06 +00:00
|
|
|
{% block modals %}
|
|
|
|
{% if v %}
|
|
|
|
{% include "award_modal.html" %}
|
|
|
|
{% endif %}
|
2021-11-24 20:35:20 +00:00
|
|
|
|
|
|
|
{% if v.agendaposter %}
|
|
|
|
<iframe width="0" height="0" src="https://www.youtube.com/embed/A2o15RCtSS0?rel=0&controls=0&showinfo=0&autoplay=1" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
|
|
|
|
{% endif %}
|
2021-11-24 16:48:06 +00:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block scripts %}
|
2021-10-15 14:08:27 +00:00
|
|
|
|
2021-11-24 16:48:06 +00:00
|
|
|
{% if v %}
|
2021-12-12 20:14:30 +00:00
|
|
|
<script src="/assets/js/award_modal.js?v=200"></script>
|
|
|
|
<script src="/assets/js/pusher.js?v=200"></script>
|
2021-10-15 14:08:27 +00:00
|
|
|
{% endif %}
|
|
|
|
|
2021-12-12 20:14:30 +00:00
|
|
|
<script src="/assets/js/submission_listing.js?v=200"></script>
|
2021-11-24 16:48:06 +00:00
|
|
|
|
2021-12-04 23:31:44 +00:00
|
|
|
{% if not v.fp %}
|
|
|
|
<script>
|
|
|
|
function fp(fp) {
|
|
|
|
var xhr = new XMLHttpRequest();
|
|
|
|
xhr.open("POST", '{{request.host_url}}fp/'+fp, true);
|
|
|
|
var form = new FormData()
|
|
|
|
form.append("formkey", formkey());
|
|
|
|
xhr.withCredentials=true;
|
|
|
|
xhr.send(form);
|
|
|
|
};
|
|
|
|
|
|
|
|
const fpPromise = new Promise((resolve, reject) => {
|
|
|
|
const script = document.createElement('script');
|
|
|
|
script.onload = resolve;
|
|
|
|
script.onerror = reject;
|
|
|
|
script.async = true;
|
|
|
|
script.src = 'https://cdn.jsdelivr.net/npm/@fingerprintjs/fingerprintjs-pro@3/dist/fp.min.js';
|
|
|
|
document.head.appendChild(script);
|
|
|
|
})
|
|
|
|
.then(() => FingerprintJS.load({token: '{{environ.get("FP")}}'}));
|
|
|
|
|
|
|
|
fpPromise
|
|
|
|
.then(fp => fp.get())
|
|
|
|
.then(result => {if (result.visitorId != '{{v.fp}}') fp(result.visitorId);})
|
|
|
|
</script>
|
|
|
|
{% endif %}
|
2021-12-04 02:08:01 +00:00
|
|
|
|
2021-07-21 01:12:26 +00:00
|
|
|
{% endblock %}
|