blob: 89533454e1eab7f33c9c759b0d6d6634908ce523 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
|
{% load djeuscan_helpers %}
{% load url from future %}
<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 %}
<p>
<a href="{% url "herd" herd.herd %}">
{{ herd.herd }}
</a>
<{{ herd.email }}>
</p>
{% endfor %}
</dd>
{% endif %}
{% if package.maintainers.all %}
<dt>Maintainers</dt>
<dd>
{% for maintainer in package.maintainers.all %}
<p>
{% if maintainer.name != maintainer.email %}
<a href="{% url "maintainer" maintainer.email %}">
{{ maintainer.name }}
</a>
<{{ maintainer.email }}>
{% else %}
<a href="{% url "maintainer" maintainer.email %}">
{{ maintainer.email }}
</a>
{% endif %}
</p>
{% endfor %}
</dd>
{% endif %}
{% if packaged %}
<dt>Packaged Versions</dt>
<dd>
<ul>
{% for version in packaged %}
<li id="version-{{ version.tag }}">
{% 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 %}
{% if version.vtype and not version.vtype|is_stable %}
<img src="{{ STATIC_URL }}img/unstable-icon.png" alt="unstable" title="{{ version.vtype }}" />
{% endif %}
{% if version.ebuild_path %}
<a href="{% url "package_version_ebuild" package.category package.name version.tag %}">
{{ version.version }}{% if version.revision != "r0" %}-{{ version.revision }}{% endif %}{% if version.slot != "0" %}:{{ version.slot }}{% endif %}
</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>
</dd>
{% endif %}
{% if upstream %}
<dt>Upstream versions</dt>
<dd>
<ul>
{% for version in upstream %}
<li id="version-{{ version.tag }}">
<img src="{{ STATIC_URL }}img/upstream-icon.png" alt="upstream" title="Upstream" />
{% if version.vtype and not version.vtype|is_stable %}
<img src="{{ STATIC_URL }}img/unstable-icon.png" alt="unstable" title="{{ version.vtype }}" />
{% endif %}
{{ version.version }} -
{% for url in version.urls_list %}
<a href="{{ url }}">{{ url }}</a>
{% endfor %}
({% if version.handler != "generic" %}{{ version.handler }} - {% endif %}{{ version.confidence }}%)
</li>
{% endfor %}
</ul>
</dd>
{% endif %}
{% include "euscan/_package_vlogs.html" %}
{% if log %}
<dt>euscan log</dt>
<dd>
<p>Date: {{ log.datetime }}</p>
<pre class="log">{{ msg|ansi_to_html|safe }}</pre>
</dd>
{% endif %}
</dl>
|