<tbody>
{% if error %}
    {{ error }}
{% else %}
    {% for name, warning, error, new in molecules %}
        <tr {% if new %}data-new="true"{% endif %} {% if warning %}class="warning"{% elif error %}class="danger"{% endif %}>
            <td>
                <a href="/chem/{{ name }}">{{ name }}</a>
            </td>
            {% if not error %}
                <td><a class="mol_setting" href="/chem/{{ name }}.gjf">gjf</a></td>
                <td><a class="mol_setting" href="/chem/{{ name }}.mol2">mol2</a></td>
                <td>
                    <a class="delayimage" data-toggle="collapse" href="#{{ name }}">
                        Image
                        <div id="{{ name }}" class="collapse">
                            <img data-src="/chem/{{ name }}.png"></img>
                        </div>
                    </a>
                </td>
                <td><a href="#" onClick="submitForm('{{ name }}')">Job</a></td>
            {% else %}
                <td colspan="4">{{ error }}</td>
            {% endif %}
            <td><a href="/chem/{{ name }}/report/">Report</a></td>
        </tr>
    {% endfor %}
{% endif %}
</tbody>
{% load url from future %}

<tbody>
{% if error %}
    {{ error }}
{% else %}
    {% for name, warning, error, new in molecules %}
        <tr {% if new %}data-new="true"{% endif %} {% if warning %}class="warning"{% elif error %}class="danger"{% endif %}>
            <td>
                <a href="{% url "mol_detail" name %}">{{ name }}</a>
            </td>
            {% if not error %}
                <td><a class="mol_setting" href="{% url "mol_gjf" name %}">gjf</a></td>
                <td><a class="mol_setting" href="{% url "mol_mol2" name %}">mol2</a></td>
                <td>
                    <a class="delayimage" data-toggle="collapse" href="#{{ name }}">
                        Image
                        <div id="{{ name }}" class="collapse">
                            <img data-src="{% url "mol_png" name %}"></img>
                        </div>
                    </a>
                </td>
                <td><a href="#" onClick="submitForm('{{ name }}')">Job</a></td>
            {% else %}
                <td colspan="4">{{ error }}</td>
            {% endif %}
            <td><a href="{% url "mol_report" name %}">Report</a></td>
        </tr>
    {% endfor %}
{% endif %}
</tbody>
Change links to use url names instead of hard links
Change links to use url names instead of hard links
