{% extends 'base.html' %}

{% block content %}
    <div class="row">
        <div class="col">
            <h1 class="text-center">{% block title %} {{ tool['name'] }} {% endblock %}</h1>
        </div>
    </div>
    {% if current_user.is_authenticated %}
    <div class="row text-center py-3">
        <a href="{{ url_for('tool.edit_tool', tool_id=tool['id']) }}">
            <span class="badge bg-warning">Edit</span>
        </a>
    </div>
    {% endif %}
    <div class="row">
        <div class="col">
            <table class="table table-hover">
                <tbody>
                    <tr>
                        <th>
                            Created:
                        </th>
                        <td>
                            {{ tool['created'].strftime("%Y-%m-%d %H:%M") }} UTC
                        </td>
                    </tr>
                    <tr>
                        <th>
                            Description:
                        </th>
                        <td>
                            {{ tool['description'] }}
                        </td>
                    </tr>
                    <tr>
                        <th>
                            Project page:
                        </th>
                        <td>
                            {{ tool['project_url'] }}
                        </td>
                    </tr>
                    <tr>
                        <th>
                            Code repository:
                        </th>
                        <td>
                            {{ tool['repository_url'] }}
                        </td>
                    </tr>
                    <tr>
                        <th>
                            Stand-alone or platform?:
                        </th>
                        <td>
                            {{ tool['platform_status'] }}
                        </td>
                    </tr>
                    <tr>
                        <th>
                            Expertise required:
                        </th>
                        <td>
                            {{ tool['expertise'] }}
                        </td>
                    </tr>
                    <tr>
                        <th>
                            Expertise required to self-host:
                        </th>
                        <td>
                            {{ tool['self_host_expertise'] }}
                        </td>
                    </tr>
                    <tr>
                        <th>
                            Import / ingest:
                        </th>
                        <td>
                            {{ tool['ingest'] }}
                        </td>
                    </tr>
                    <tr>
                        <th>
                            Output formats:
                        </th>
                        <td>
                            {{ tool['output'] }}
                        </td>
                    </tr>
                    <tr>
                        <th>
                            SAAS?:
                        </th>
                        <td>
                            {{ tool['saas'] }}
                        </td>
                    </tr>
                    <tr>
                        <th>
                            Community-hosted examples:
                        </th>
                        <td>

                        </td>
                    </tr>
                    <tr>
                        <th>
                            Technical dependencies:
                        </th>
                        <td>
                            {{ tool['dependencies'] }}
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
    </div>
{% endblock %}