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-thread.html

View raw Download
text/html • 1.75 kiB
HTML document, ASCII text
        
            
1
{% extends "repo.html" %}
2
{% set active_page = "forum" %}
3
4
{% block title %}
5
{% trans subject=parent.subject, username=username, repository=repository %}{{ subject }} in {{ username }}/{{ repository }}{% endtrans %}
6
{% endblock %}
7
{% block content %}
8
<script src="/static/voting.js"></script>
9
<x-vbox style="--gap-box: 0;">
10
<x-buttonbox id="forum-banner" class="box-center">
11
{% if not parent.root %}
12
<a href="." class="button icon-button">
13
<iconify-icon icon="mdi:arrow-left"></iconify-icon>
14
</a>
15
<h1>{{ parent.subject }}</h1>
16
17
<div class="flexible-space"></div>
18
19
<form action="{{ parent.number }}/change-state" method="post">
20
{% if parent.state == 0 %}
21
<button type="submit" name="new-state" value="1" style="background: var(--color-done); color: var(--color-done-text);">
22
{% trans %}done{% endtrans %}
23
</button>
24
{% elif parent.state == 1 %}
25
<button type="submit" name="new-state" value="0" style="background: var(--color-pending); color: var(--color-pending-text);">
26
{% trans %}active{% endtrans %}
27
</button>
28
{% endif %}
29
</form>
30
{% else %}
31
<a href="." class="button icon-button">
32
<iconify-icon icon="mdi:arrow-left"></iconify-icon>
33
</a>
34
<h1>{{ parent.root.subject }}</h1>
35
{% endif %}
36
</x-buttonbox>
37
<x-frame style="--width: 896px;" class="flexible-space">
38
<x-vbox>
39
{% set post = parent %}
40
{% set level = 0 %}
41
{% include "post.html" %}
42
</x-vbox>
43
</x-frame>
44
</x-vbox>
45
{% endblock %}
46