<!--Canopy - The next generation of stoner streaming software
Copyright (C) 2024  Rainbownapkin and the TTN Community

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License
along with this program.  If not, see <https://www.gnu.org/licenses/>.-->
<div id="admin-channel-list-div" class="admin-list-div">
    <h3>Channel List:</h3>
    <div class="dynamic-container">
        <table id="admin-channel-list-table" class="admin-list-table">
        <tr id="admin-channel-list-entry-title" class="admin-list-entry-title-row">
                <td id="admin-channel-list-entry-img-title" class=" admin-list-entry-title admin-list-entry-item admin-list-entry-img-title">
                    <h3>Img</h3>
                </td>
                <td id="admin-channel-list-entry-name-title" class=" admin-list-entry-title admin-list-entry-item not-first-col">
                    <h3>Name</h3>
                </td>
                <td id="admin-channel-list-entry-description-title" class=" admin-list-entry-title admin-list-entry-item not-first-col">
                    <h3>Description</h3>
                </td>
            </tr>
        <% chanGuide.forEach((channel) => { %>
            <tr id="admin-channel-list-entry-<%- channel.name %>" class="">
                <td id="admin-channel-list-entry-img-<%- channel.name %>" class=" admin-list-entry-item">
                    <a href="/c/<%- channel.name %>" class=" admin-list-entry-item">
                        <img id="admin-channel-list-entry-img-<%- channel.name %>" class=" admin-list-entry-item" src="<%- channel.thumbnail %>">
                    </a>
                </td>
                <td id="admin-channel-list-entry-name-<%- channel.name %>" class=" admin-list-entry-item not-first-col">
                    <a href="/c/<%- channel.name %>" class=" admin-list-entry-item">
                        <%- channel.name %>
                    </a>
                </td>
                <td id="admin-channel-list-entry-description-<%- channel.name %>" class="large admin-list-entry-item not-first-col">
                    <%- channel.description %>
                </td> 
            </tr>
        <% }); %>
        </table>
    </div>
</div>