sarmentine/templates/threads/list.html
Butter e036304b78
Some checks failed
CI / Check (push) Failing after 1m16s
CI / Build & Push Docker Image (push) Has been skipped
CI / Deploy to Rocky (push) Has been skipped
added docker, ci/cd, threads, posts, profiles
2026-05-04 13:26:33 -04:00

24 lines
893 B
HTML

{% extends "base.html" %}
{% block content %}
<div style="font-family:'Silkscreen',monospace; font-size:14px; color:#d4879c; margin-bottom:12px; text-transform:uppercase;">threads</div>
{% if let Some(user) = current_user %}
<a href="/threads/new" class="nav-link" style="margin-bottom:16px; display:inline-block;">+ new thread</a>
{% endif %}
{% if threads.is_empty() %}
<div class="post">
<div class="post-title">no threads yet</div>
<div class="post-body">be the first to start a thread!</div>
</div>
{% else %}
{% for twa in threads %}
<div class="post">
<div class="post-title"><a href="/threads/{{ twa.thread.id }}">{{ twa.thread.title }}</a></div>
<div class="post-body" style="color:#888; font-size:11px;">by <a href="/profile/{{ twa.author.username }}">{{ twa.author.username }}</a> &middot; {{ twa.thread.created_at }}</div>
</div>
{% endfor %}
{% endif %}
{% endblock %}