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.89 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
{{ max_post_nesting }}
17
18
<div class="flexible-space"></div>
19
20
{% if has_permission %}
21
<form action="{{ parent.number }}/change-state" method="post">
22
{% if parent.state == 0 %}
23
<button type="submit" name="new-state" value="1" style="background: var(--color-done); color: var(--color-done-text);">
24
{% trans %}done{% endtrans %}
25
</button>
26
{% elif parent.state == 1 %}
27
<button type="submit" name="new-state" value="0" style="background: var(--color-pending); color: var(--color-pending-text);">
28
{% trans %}active{% endtrans %}
29
</button>
30
{% endif %}
31
</form>
32
{% endif %}
33
{% else %}
34
<a href="." class="button icon-button">
35
<iconify-icon icon="mdi:arrow-left"></iconify-icon>
36
</a>
37
<h1>{{ parent.root.subject }}</h1>
38
{% endif %}
39
</x-buttonbox>
40
<x-frame style="--width: 896px;" class="flexible-space">
41
<x-vbox>
42
{% set post = parent %}
43
{% set level = 0 %}
44
{% include "post.html" %}
45
</x-vbox>
46
</x-frame>
47
</x-vbox>
48
{% endblock %}
49