24 lines
893 B
HTML
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> · {{ twa.thread.created_at }}</div>
|
|
</div>
|
|
{% endfor %}
|
|
{% endif %}
|
|
{% endblock %}
|