{% load hq_shared_tags %}

<html>
    <head>
        <link type="text/css" rel="stylesheet" href="{% static 'bootstrap/dist/css/bootstrap.css' %}" />
        <title>eNikshay Duplicate {{ case_type }} IDs report</title>
    </head>
    <body>

        <h1>eNikshay Duplicate {{ case_type }} IDs report</h1>

        <p>{{ num_total_cases }} total {{ case_type }}s</p>
        <p>{{ num_bad_cases }} {{ case_type }}s with duplicate ids</p>
        <p>{{ num_good_cases }} {{ case_type }}s with unique ids</p>

        <table class="table">
            <thead>
                <caption>Cases with duplicate ids</caption>
                <tr>
                    <th>Readable Case ID</th>
                    <th>UUID</th>
                    <th>Case Created</th>
                    <th>Link to {{ case_type }} case</th>
                </tr>
            </thead>
            <tbody>
                {% for case in bad_cases %}
                <tr>
                    <td>{{ case.readable_id }}</td>
                    <td>{{ case.case_id }}</td>
                    <td>{{ case.opened_on }}</td>
                    <td>{% url 'case_details' request.domain case.case_id %}</td>
                </tr>
                {% endfor %}
            </tbody>
        </table>

    </body>
</html>

{% load hq_shared_tags %}

<html>
    <head>
        <link type="text/css" rel="stylesheet" href="{% static 'bootstrap/dist/css/bootstrap.css' %}" />
        <title>eNikshay Duplicate {{ case_type }} IDs report</title>
    </head>
    <body>

        <h1>eNikshay Duplicate {{ case_type }} IDs report</h1>

        <p>{{ num_total_cases }} total {{ case_type }}s</p>
        <p>{{ num_bad_cases }} {{ case_type }}s with duplicate ids</p>
        <p>{{ num_good_cases }} {{ case_type }}s with unique ids</p>

        <table class="table">
            <thead>
                <caption>Cases with duplicate ids</caption>
                <tr>
                    <th>Readable Case ID</th>
                    <th>UUID</th>
                    <th>Case Created</th>
                    <th>Link to {{ case_type }} case</th>
                </tr>
            </thead>
            <tbody>
                {% for case in bad_cases %}
                <tr>
                    <td>{{ case.readable_id }}</td>
                    <td>{{ case.case_id }}</td>
                    <td>{{ case.opened_on }}</td>
                    <td>
                        <a href="{% url 'case_details' request.domain case.case_id %}">Case Details</a>
                    </td>
                </tr>
                {% endfor %}
            </tbody>
        </table>

    </body>
</html>

Make the link a link
Make the link a link
