9f1cdae45e
Signed-off-by: Corentin Chary <corentincj@iksaif.net>
127 lines
3.4 KiB
HTML
127 lines
3.4 KiB
HTML
{% extends "euscan/_datatable.html" %}
|
|
|
|
{% load sub %}
|
|
|
|
{% block meta %}
|
|
{{ block.super }}
|
|
<link rel="alternate" type="application/atom+xml" title="{{ package }} Feed" href="{% url package_feed package.category package.name %}" />
|
|
{% endblock %}
|
|
|
|
{% block menu_feed %}
|
|
{{ block.super }}
|
|
<li>
|
|
<img src="{{ STATIC_URL }}/img/feed.png" alt="feed" />
|
|
<a title="{{ package }} Feed" href="{% url package_feed package.category package.name %}">{{ package }}</a>
|
|
</li>
|
|
{% endblock %}
|
|
|
|
{% block title %}
|
|
{{ block.super }} - {{ package.category }}/{{ package.name }}
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
<h2>{{ package.category }}/{{ package.name }}</h2>
|
|
<dl>
|
|
{% if package.description %}
|
|
<dt>Description</dt>
|
|
<dd>{{ package.description }}</dd>
|
|
{% endif %}
|
|
{% if package.homepage %}
|
|
<dt>Homepage</dt>
|
|
<dd>
|
|
{% for homepage in package.homepages %}
|
|
<a href="{{ homepage }}">{{ homepage }}</a><br />
|
|
{% endfor %}
|
|
</dd>
|
|
{% endif %}
|
|
{% if package.herds.all %}
|
|
<dt>Herds</dt>
|
|
<dd>
|
|
{% for herd in package.herds.all %}
|
|
<a href="{% url euscan.views.herd herd.herd %}">
|
|
{{ herd.herd }}
|
|
</a>
|
|
<{{ herd.email }}>
|
|
{% endfor %}
|
|
</dd>
|
|
{% endif %}
|
|
{% if package.maintainers.all %}
|
|
<dt>Maintainers</dt>
|
|
<dd>
|
|
{% for maintainer in package.maintainers.all %}
|
|
{% if maintainer.name != maintainer.email %}
|
|
<a href="{% url euscan.views.maintainer maintainer.id %}">
|
|
{{ maintainer.name }}
|
|
</a>
|
|
<{{ maintainer.email }}>
|
|
{% else %}
|
|
<a href="{% url euscan.views.maintainer maintainer.id %}">
|
|
{{ maintainer.email }}
|
|
</a>
|
|
{% endif %}
|
|
{% endfor %}
|
|
</dd>
|
|
{% endif %}
|
|
{% if packaged %}
|
|
<dt>Packaged Versions</dt>
|
|
<dd>
|
|
<ul>
|
|
{% for version in packaged %}
|
|
<li id="{{ version.version }}-{{version.revision }}:{{ version.slot }}-[{{ version.overlay }}]">
|
|
{% if version.overlay == "gentoo" %}
|
|
<img src="{{ STATIC_URL }}img/gentoo-icon.png" alt="gentoo" title="In Gentoo" />
|
|
{% else %}
|
|
<img src="{{ STATIC_URL }}img/overlay-icon.png" alt="overlays" title="In Overlays" />
|
|
{% endif %}
|
|
{{ version.version }}-{{ version.revision }} :{{ version.slot }} [{{ version.overlay }}]
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
</dd>
|
|
{% endif %}
|
|
{% if upstream %}
|
|
<dt>Upstream versions</dt>
|
|
<dd>
|
|
<ul>
|
|
{% for version in upstream %}
|
|
<li>
|
|
<img src="{{ STATIC_URL }}img/upstream-icon.png" alt="upstream" title="Upstream" />
|
|
{{ version.version }} - {{ version.urls }}
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
</dd>
|
|
{% endif %}
|
|
<dt>Version history</dt>
|
|
<dd>
|
|
<ul class="log">
|
|
{% for version in vlog %}
|
|
{% if version.action == version.VERSION_ADDED %}
|
|
<li class="added">
|
|
{% else %}
|
|
<li class="removed">
|
|
{% endif %}
|
|
{% if version.overlay == "gentoo" %}
|
|
<img src="{{ STATIC_URL }}img/gentoo-icon.png" alt="gentoo" title="In Gentoo" />
|
|
{% else %}{% if version.overlay %}
|
|
<img src="{{ STATIC_URL }}img/overlay-icon.png" alt="overlays" title="In Overlays" />
|
|
{% else %}
|
|
<img src="{{ STATIC_URL }}img/upstream-icon.png" alt="upstream" title="Upstream" />
|
|
{% endif %}{% endif %}
|
|
{{ version }} - {{ version.datetime }}
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
</dt>
|
|
{% if log %}
|
|
<dt>euscan log</dt>
|
|
<dd>
|
|
<p>Date: {{ log.datetime }}
|
|
<pre class="log">
|
|
{{ log.result }}
|
|
</pre>
|
|
</dd>
|
|
{% endif %}
|
|
</dl>
|
|
{% endblock %}
|