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