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