{# # Copyright 2013 Donald Stufft # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. -#} {% extends "base.html" %} {% block title %}{{ project }}{% endblock %} {% block extra_head %} {% endblock %} {% block content %}

{{ project }} {{ release.version }}

{% if release.summary %}

{{ release.summary }}

{% endif %}
{% if downloads|length() == 1 %} {% set download = downloads|first() %} {{ gettext('Download %(filename)s', filename=download.filename) }} {% elif downloads|length() >= 2 %} {{ gettext('Downloads') }} ↓ {% endif %}
{% if release.version != releases[0].version %}
{% set latest_version = releases[0].version %} {% set latest_url = url_for('warehouse.packaging.views.project_detail', project_name=project) %} {% set latest_link = '%(version)s'|format(url=latest_url, version=latest_version)|safe %} {{ gettext('The latest version of this package is %(latest)s', latest=latest_link) }}
{% endif %}
{{ description_html }}
{% if downloads %}

{{ gettext('Downloads') }}

{% for download in downloads %} {% endfor %}
{{ gettext('File') }} {{ gettext('Type') }} {{ gettext('Python Version') }} {{ gettext('Uploaded On') }} {{ gettext('Size') }}
{{ download.filename }} ({{ gettext('hash') }}) {% if download.pgp_url %}(pgp){% endif %} {{ download.packagetype|package_type_display() }} {% if download.python_version != "source" %} {{ download.python_version }} {% endif %} {{ download.upload_time|format_date() }} {{ download.size|filesizeformat() }}
{% endif %}
{% for download in downloads %} {% endfor %} {% if releases|count() > 5 %} {% endif %} {% endblock %}