{%if package%}<html><head><title>Links for {{ package.name }}</title></head><body><h1>Links for {{ package.name }}</h1>
{% for r in package.sorted_releases %}
    {% for f in r.files %}<a href="{{ route_url('show_release_file', file_id=f.id, filename=f.filename)
                                   }}#{{ f.md5_digest }}">{{f.filename}}</a><br/>
    {% endfor %}
    {% if r.download_url and r.download_url != 'UNKNOWN'  %}
<a href="{{ route_url('show_external_release_file', release_id=r.id, filename=r.download_url_file)
         }}" rel="download">{{ r.download_url_file }} </a><br/>
    {% endif %}
{% endfor %}
{% for r in package.sorted_releases %}
    {% if r.home_page and r.home_page != 'UNKNOWN' %}
<a href="{{ r.home_page }}" rel="homepage">{{ r.version }} home_page</a><br/>
    {% endif %}
{% endfor %}
</body></html>{% else %}Not found, ({{package_name}} does not have any release){% endif %}
{%if package%}<html><head><title>Links for {{ package.name }}</title></head><body><h1>Links for {{ package.name }}</h1>
{% for r in package.sorted_releases %}
    {% for f in r.files %}<a href="{{ route_url('show_release_file', file_id=f.id, filename=f.filename)
                                   }}#{{ f.md5_digest }}">{{f.filename}}</a><br/>
    {% endfor %}
    {% if r.download_url_file and r.download_url_file != 'UNKNOWN'  %}
<a href="{{ route_url('show_external_release_file', release_id=r.id, filename=r.download_url_file)
         }}" rel="download">{{ r.download_url_file }} </a><br/>
    {% endif %}
{% endfor %}
{% for r in package.sorted_releases %}
    {% if r.home_page and r.home_page != 'UNKNOWN' %}
<a href="{{ r.home_page }}" rel="homepage">{{ r.version }} home_page</a><br/>
    {% endif %}
{% endfor %}
</body></html>{% else %}Not found, ({{package_name}} does not have any release){% endif %}
Fix mirroring link for external files
Fix mirroring link for external files
