repo-forum.html
HTML document, ASCII text
1{% extends "repo.html" %} 2{% block title %} 3Forum of {{ username }}/{{ repository }} 4{% endblock %} 5{% block content %} 6<x-vbox> 7<x-frame style="--width: 896px;" class="flexible-space"> 8<x-vbox> 9<form method="POST" action="new"> 10<x-vbox> 11<x-vbox class="nopad"> 12<label for="subject">Subject</label> 13<input id="subject" name="subject" required> 14</x-vbox> 15<textarea name="message" style="box-sizing: border-box;" rows="8" required></textarea> 16<x-buttonbox> 17<button type="submit">Add new topic</button> 18</x-buttonbox> 19</x-vbox> 20</form> 21{% for post in Post.query.filter_by(repo=repoData, parent=none).order_by(Post.lastUpdated.desc()) %} 22<article class="card card-horizontal"> 23<figure class="branch-icon"> 24<iconify-icon icon="mdi:note"></iconify-icon> 25</figure> 26<section class="card-main"> 27<h3><a href="{{ post.number }}">{{ post.subject }}</a> ({{ post.children | length }})</h3> 28<p><a href="/{{ post.owner.username }}">{{ post.owner.username }}</a></p> 29</section> 30</article> 31{% endfor %} 32</x-vbox> 33</x-frame> 34</x-vbox> 35{% endblock %} 36