euscanwww/templates: add icons

Signed-off-by: Corentin Chary <corentincj@iksaif.net>
This commit is contained in:
Corentin Chary 2012-03-28 09:08:00 +02:00
parent a8d38127cc
commit 697fbf06ab

View File

@ -68,6 +68,11 @@
<ul> <ul>
{% for version in packaged %} {% for version in packaged %}
<li id="{{ version.version }}-{{version.revision }}:{{ version.slot }}-[{{ version.overlay }}]"> <li id="{{ version.version }}-{{version.revision }}:{{ version.slot }}-[{{ version.overlay }}]">
{% if version.overlay == "gentoo" %}
<img src="{{ MEDIA_URL }}img/gentoo-icon.png" alt="gentoo" title="In Gentoo" />
{% else %}
<img src="{{ MEDIA_URL }}img/overlay-icon.png" alt="overlays" title="In Overlays" />
{% endif %}
{{ version.version }}-{{ version.revision }} :{{ version.slot }} [{{ version.overlay }}] {{ version.version }}-{{ version.revision }} :{{ version.slot }} [{{ version.overlay }}]
</li> </li>
{% endfor %} {% endfor %}
@ -80,6 +85,7 @@
<ul> <ul>
{% for version in upstream %} {% for version in upstream %}
<li> <li>
<img src="{{ MEDIA_URL }}img/upstream-icon.png" alt="upstream" title="Upstream" />
{{ version.version }} - {{ version.urls }} {{ version.version }} - {{ version.urls }}
</li> </li>
{% endfor %} {% endfor %}
@ -95,6 +101,13 @@
{% else %} {% else %}
<li class="removed"> <li class="removed">
{% endif %} {% endif %}
{% if version.overlay == "gentoo" %}
<img src="{{ MEDIA_URL }}img/gentoo-icon.png" alt="gentoo" title="In Gentoo" />
{% else %}{% if version.overlay %}
<img src="{{ MEDIA_URL }}img/overlay-icon.png" alt="overlays" title="In Overlays" />
{% else %}
<img src="{{ MEDIA_URL }}img/upstream-icon.png" alt="upstream" title="Upstream" />
{% endif %}{% endif %}
{{ version }} - {{ version.datetime }} {{ version }} - {{ version.datetime }}
</li> </li>
{% endfor %} {% endfor %}