{% extends "projects/base.html" %} {% block page_title %}{{ version.original_name }} ยท {{ feature.key }}{% endblock %} {% block project_content %} {% url 'files:raw' org_slug=project.org.slug project_slug=project.slug feature_key=feature.key file_id=file.pk version=version.version name=version.original_name as raw_url %} {% url 'files:detail' org_slug=project.org.slug project_slug=project.slug feature_key=feature.key file_id=file.pk as file_url %}

Back to {{ feature.key }} {{ feature.title }}

{{ version.original_name }} version {{ version.version }}

{{ file.get_kind_display }} for {{ feature.key }}. Uploaded by {{ version.uploaded_by.username|default:"ghost" }} on , {{ version.size|filesizeformat }}. {% if version.opens_inline %}Open{% else %}Download{% endif %} {{ version.original_name }}

{% if file.is_removed %}

Removed from the feature in revision {{ file.removed_in_revision }}. Its versions and comments are kept.

{% elif not is_current %}

Older version. See the latest, version {{ file.current_version }}.

{% endif %} {% if version.is_image %}
{{ version.original_name }}, version {{ version.version }}.{% if pins %} Pinned comments are listed below the image.{% endif %} {% for t in pins %} {{ t.pin_number }} {% endfor %}
{% elif version.is_html %} {# Sandboxed without allow-same-origin: the prototype runs in an opaque origin. #} {% elif version.is_text %} {% if version.content_type == "text/markdown" %}
{{ preview }}
{% else %}
{{ preview }}
{% endif %} {% if truncated %}

Only the start of the file is shown. Open it to see everything.

{% endif %} {% endif %}

Comments on this version

{% for thread in file_threads %} {% include "comments/_thread.html" %} {% empty %}

No comments yet.

{% endfor %} {% if is_current and access.can_contribute %}
{% csrf_token %} {% if version.is_image %}
Pin to a point (optional)

Click the image to place a pin, or enter its position.

{% endif %}
{% elif not user.is_authenticated and project.open_contribution %}

Sign in to comment.

{% endif %}
{% if other_threads %}

Comments on other versions

{% for thread in other_threads %} {% include "comments/_thread.html" %} {% endfor %}
{% endif %}

Versions

{% for v in versions %} {% endfor %}
Version Name Uploaded Feature revision Size
{% if v.version == version.version %}{{ v.version }} (shown){% else %}{{ v.version }}{% endif %} {{ v.original_name }} by {{ v.uploaded_by.username|default:"ghost" }} {{ v.created_in_revision }} {{ v.size|filesizeformat }}
{% if access.can_edit and not file.is_removed %}

Change this file

Each change is a new revision of {{ feature.key }}. Comments on earlier versions are kept.

Upload a new version
{% csrf_token %} {{ replace_form.as_p }}
Remove from the feature
{% csrf_token %}

{% endif %} {% endblock %}