euscanwww: Showing ebuild and metadata in package details page

Signed-off-by: volpino <fox91@anche.no>
This commit is contained in:
volpino
2012-11-08 15:21:02 +01:00
parent effab2015b
commit c648d7e756
4 changed files with 45 additions and 3 deletions

View File

@ -62,7 +62,16 @@
<img src="{{ STATIC_URL }}img/unstable-icon.png" alt="unstable" title="{{ version.vtype }}" />
{% endif %}
{{ version.version }}-{{ version.revision }} :{{ version.slot }} [{{ version.overlay }}]
{% if version.ebuild_path %}
<a href="{% url "package_version_ebuild" package.category package.name version.tag %}">
{{ version.version }}-{{ version.revision }} :{{ version.slot }} [{{ version.overlay }}]
</a>
{% endif %}
{% if version.metadata_path %}
<a href="{% url "package_version_metadata" package.category package.name version.tag %}">
<img src="{{ STATIC_URL }}img/metadata.png" alt="Metadata" />
</a>
{% endif %}
</li>
{% endfor %}
</ul>