djeuscan: better email template
Signed-off-by: Corentin Chary <corentin.chary@gmail.com>
This commit is contained in:
parent
97830775c8
commit
2b823fb905
31
euscanwww/djeuscan/templates/euscan/_package_vlogs.html
Normal file
31
euscanwww/djeuscan/templates/euscan/_package_vlogs.html
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
{% load djeuscan_helpers %}
|
||||||
|
|
||||||
|
{% if vlog %}
|
||||||
|
<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" />
|
||||||
|
{% elif 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 %}
|
||||||
|
|
||||||
|
{% 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.datetime }}
|
||||||
|
|
||||||
|
</li>
|
||||||
|
{% endfor %}
|
||||||
|
</ul>
|
||||||
|
</dd>
|
||||||
|
{% endif %}
|
Loading…
Reference in New Issue
Block a user