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.76 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 seo %}
8
{% if repo_data.visibility < 2 %}
9
<meta name="robots" content="noindex">
10
{% endif %}
11
<meta name="description" content="{{ parent.message | truncate(160) }}">
12
{% endblock %}
13
{% block content %}
14
<script src="/static/voting.js"></script>
15
<x-vbox style="--gap-box: 0;">
16
<x-buttonbox id="forum-banner" class="box-center">
17
<a href="." class="button icon-button">
18
<iconify-icon icon="mdi:arrow-left"></iconify-icon>
19
</a>
20
<h1>{{ parent.root.subject }}</h1>
21
22
<div class="flexible-space"></div>
23
24
{% if has_permission %}
25
<form action="{{ parent.root.number }}/change-state" method="post">
26
{% if parent.root.state == 0 %}
27
<button type="submit" name="new-state" value="1" style="background: var(--color-done); color: var(--color-done-text);">
28
{% trans %}done{% endtrans %}
29
</button>
30
{% elif parent.root.state == 1 %}
31
<button type="submit" name="new-state" value="0" style="background: var(--color-pending); color: var(--color-pending-text);">
32
{% trans %}active{% endtrans %}
33
</button>
34
{% endif %}
35
</form>
36
{% endif %}
37
</x-buttonbox>
38
<x-frame style="--width: 896px;" class="flexible-space">
39
<x-vbox>
40
{% set post = parent %}
41
{% set level = 0 %}
42
{% include "post.html" %}
43
</x-vbox>
44
</x-frame>
45
</x-vbox>
46
{% endblock %}
47