{% extends "root.html" %}
{# A landing row's full feed in Classic (/p/latest, /p/popular;
src/handlers/landing.rs feed). Focus uses forum/focus_list.html. #}
{% block width %}max-w-5xl{% endblock %}
{% block content %}
<div class="space-y-4 text-left">
<nav class="text-sm opacity-70" aria-label="Breadcrumb"><a href="/" class="link link-hover">Home</a> / {{ heading }}</nav>
<div class="flex flex-wrap items-center justify-between gap-3">
<div>
<h1 class="text-3xl font-bold"><i class="fas {{ heading_icon }} mr-2 text-2xl opacity-60" aria-hidden="true"></i>{{ heading }}</h1>
<p class="text-sm opacity-60">{{ blurb }}</p>
</div>
{% set view_mode = "classic" %}{% include "forum/_view_toggle.html" %}
</div>
{# /p/latest follows live updates; /p/popular refreshes every 5 minutes. #}
<div id="feed-list"
{% if toggle_base == "/p/latest" %}data-live="latest"{% else %}hx-get="{{ toggle_base }}?view=classic" hx-select="#feed-list" hx-target="this" hx-swap="outerHTML" hx-disinherit="*"
hx-trigger="every 300s [window.livePollOk()]" data-poll="popular"{% endif %}>
{% if topics %}
{% include "forum/_topic_list.html" %}
{% else %}
<p class="rounded-box border border-dashed border-base-300 p-6 text-center text-sm opacity-60">Nothing here yet.</p>
{% endif %}
</div>
</div>
{% endblock %}
neiam
/recourse
public · Issues · Pulls · Labels · Forks · Compare · Actions running · Badges · Packages
⭐
Log in to mark this repository.
1.3 KiB · text
History
84bfe6e