gallery-users.html
    
    HTML document, ASCII text
        
            1
            {% extends "default.html" %} 
        
            2
             
        
            3
            {% block nav_title %}{{ gallery.title }}{% endblock %} 
        
            4
            {% block title %}Users of {{ gallery.title }} | {{ site_name }}{% endblock %} 
        
            5
            {% set back_url = "/gallery/" + gallery.id|string %} 
        
            6
             
        
            7
            {% block content %} 
        
            8
                <x-frame style="--width: 768px" class="vbox"> 
        
            9
                    {% if have_permission %} 
        
            10
                        <form class="buttonbox" method="POST" action="/gallery/{{ gallery.id }}/users/add"> 
        
            11
                            <input name="username" type="text" placeholder="Username" required aria-label="Username"> 
        
            12
                            <button type="submit">Add user</button> 
        
            13
                        </form> 
        
            14
                        <form class="buttonbox" method="POST" action="/gallery/{{ gallery.id }}/users/remove"> 
        
            15
                            <input name="username" type="text" placeholder="Username" required aria-label="Username"> 
        
            16
                            <button type="submit">Remove user</button> 
        
            17
                        </form> 
        
            18
                    {% endif %} 
        
            19
                    <p>Besides the owner, these users can also add and remove resources from this gallery:</p> 
        
            20
                    <ul> 
        
            21
                        {% for user in gallery.users %} 
        
            22
                            <li><a href="/user/{{ user.user.username }}">{{ user.user.formatted_name }}</a></li> 
        
            23
                        {% endfor %} 
        
            24
                    </ul> 
        
            25
                </x-frame> 
        
            26
            {% endblock %}