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
                    <a href="." class="button icon-button"> 
        
            12
                        <iconify-icon icon="mdi:arrow-left"></iconify-icon> 
        
            13
                    </a> 
        
            14
                    <h1>{{ parent.root.subject }}</h1> 
        
            15
             
        
            16
                    <div class="flexible-space"></div> 
        
            17
             
        
            18
                    {% if has_permission %} 
        
            19
                        <form action="{{ parent.root.number }}/change-state" method="post"> 
        
            20
                            {% if parent.root.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.root.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
                    {% endif %} 
        
            31
                </x-buttonbox> 
        
            32
                <x-frame style="--width: 896px;" class="flexible-space"> 
        
            33
                    <x-vbox> 
        
            34
                        {% set post = parent %} 
        
            35
                        {% set level = 0 %} 
        
            36
                        {% include "post.html" %} 
        
            37
                    </x-vbox> 
        
            38
                </x-frame> 
        
            39
            </x-vbox> 
        
            40
            {% endblock %} 
        
            41