{% extends "layouts/dev-page.html" %}

{% block title %}Dev Utils{% endblock %}

{% block card_body %}
    {%  include 'includes/section/page_breadcrumb.html' %}

    <div class="container-fluid">
        <div class="row">
            <div class="col-12">
                <div class="card">
                    <div class="card-body">

                        <h2>User Management </h2>
                        <ul>
                            {% for link in user_management %}
                                <li><a href="{{ link.url }}" target="{{ link.target }}">{{ link.label }}</a></li>
                            {% endfor %}
                        </ul>
                        <h2>Prompt UIs </h2>
                        <ul>
                            {% for link in prompt_uis %}
                                <li><a href="{{ link.url }}" target="{{ link.target }}">{{ link.label }}</a></li>
                            {% endfor %}
                        </ul>

                        <h2>Editing Links</h2>
                        <ul>
                            {% for link in for_danny %}
                                <li><a href="{{ link.url }}" target="{{ link.target }}">{{ link.label }}</a></li>
                            {% endfor %}
                        </ul>
                    </div>
                </div>
            </div>
        </div>
        <div class="row">
            <div class="col-12">
                <div class="card">
                    <div class="card-body">
                        <h2>Dev Links (for Dinis)</h2>
                        <ul>
                            {% for link in useful_links %}
                                <li><a href="{{ link.url }}" target="{{ link.target }}">{{ link.label }}</a></li>
                            {% endfor %}
                        </ul>
                    </div>
                </div>
            </div>
        </div>

{#        <div class="row">#}
{#            <div class="col-12">#}
{##}
{#                <h2>GitHub Repos</h2>#}
{##}
{#                {% for repo_name, repo_details in git_repo_status.items() %}#}
{#                <div class="card">#}
{#                    <div class="card-body">#}
{#                        <h3>#}
{#                            <a href="{{ repo_details.url }}" target="_blank">{{ repo_name }}</a>#}
{#                        </h3>#}
{#                        <p>#}
{#                            {{ repo_details.description }}#}
{#                        </p>#}
{#                        <p>#}
{#                            <img src="https://img.shields.io/badge/release-{{ repo_details.version }}-black"/>#}
{#                            <img src="https://codecov.io/gh/the-cyber-boardroom/{{ repo_details.name }}/graph/badge.svg?token={{ repo_details.badge_codecov_io}}"/>#}
{#                            <img src="https://img.shields.io/badge/Last%20Modified-{{ repo_details.last_modified|urlencode }}-blue" />#}
{#                        </p>#}
{#                        <h4>Commits</h4>#}
{#                        <table class="table table-striped">#}
{#                            <thead>#}
{#                                <tr>#}
{#                                    <th>Author</th>#}
{#                                    <th>Date</th>#}
{#                                    <th>Message</th>#}
{#                                    <th>SHA</th>#}
{#                                </tr>#}
{#                            </thead>#}
{#                            <tbody>#}
{#                                {% for commit in repo_details.commits %}#}
{#                                <tr>#}
{#                                    <td>{{ commit.author }}</td>#}
{#                                    <td>{{ commit.date }}</td>#}
{#                                    <td>{{ commit.message }}</td>#}
{#                                    <td>#}
{#                                        <a href="https://github.com/the-cyber-boardroom/{{ repo_name }}/commit/{{ commit.sha }}" target="_blank">#}
{#                                            {{ commit.sha[:6] }}#}
{#                                        </a>#}
{#                                    </td>#}
{#                                </tr>#}
{#                                {% endfor %}#}
{#                            </tbody>#}
{#                        </table>#}
{#                    </div>#}
{#                </div>#}
{#                {% endfor %}#}
{#            </div>#}
{#        </div>#}


    </div>



{#    todo: add links to the multiple servers#}
{#    DEV    = https://dev.cyber-boardroom.com/home#}
{#    PROD = https://www.thecyberboardroom.com/home#}
{% endblock card_body %}

{% block javascripts %}{% endblock javascripts %}
