By using this site, you agree to have cookies stored on your device, strictly for functional purposes, such as storing your session and preferences.

Dismiss

 repo-forum.html

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