euscanwww/templates: add some "extras"

Signed-off-by: Corentin Chary <corentincj@iksaif.net>
This commit is contained in:
Corentin Chary 2012-02-14 14:53:33 +01:00
parent 31af7ae416
commit 9e47ceb311
3 changed files with 27 additions and 0 deletions

View File

@ -15,6 +15,9 @@
<th>Gentoo</th> <th>Gentoo</th>
<th>Overlays</th> <th>Overlays</th>
<th>Unpackaged</th> <th>Unpackaged</th>
{% if request.GET.extras %}
<th>Graphs</th>
{% endif %}
</thead> </thead>
<tbody> <tbody>
{% for category in categories %} {% for category in categories %}
@ -24,6 +27,12 @@
{% package_bar category %} {% package_bar category %}
</td> </td>
{% package_cols category %} {% package_cols category %}
{% if request.GET.extras %}
<td>
<img src="{% url euscan.views.chart_category category.category 'packages-monthly-small' %}" />
<img src="{% url euscan.views.chart_category category.category 'versions-monthly-small' %}" />
</td>
{% endif %}
</tr> </tr>
{% endfor %} {% endfor %}
</tbody> </tbody>

View File

@ -14,6 +14,9 @@
<th>Gentoo</th> <th>Gentoo</th>
<th>Overlays</th> <th>Overlays</th>
<th>Unpackaged</th> <th>Unpackaged</th>
{% if request.GET.extras %}
<th>Graphs</th>
{% endif %}
</thead> </thead>
<tbody> <tbody>
{% for herd in herds %} {% for herd in herds %}
@ -25,6 +28,12 @@
{% package_bar herd %} {% package_bar herd %}
</td> </td>
{% package_cols herd %} {% package_cols herd %}
{% if request.GET.extras %}
<td>
<img src="{% url euscan.views.chart_herd herd.herds__herd 'packages-monthly-small' %}" />
<img src="{% url euscan.views.chart_herd herd.herds__herd 'versions-monthly-small' %}" />
</td>
{% endif %}
</tr> </tr>
{% endfor %} {% endfor %}
</tbody> </tbody>

View File

@ -14,6 +14,9 @@
<th>Gentoo</th> <th>Gentoo</th>
<th>Overlays</th> <th>Overlays</th>
<th>Unpackaged</th> <th>Unpackaged</th>
{% if request.GET.extras %}
<th>Graphs</th>
{% endif %}
</thead> </thead>
<tbody> <tbody>
{% for maintainer in maintainers %} {% for maintainer in maintainers %}
@ -29,6 +32,12 @@
{% package_bar maintainer %} {% package_bar maintainer %}
</td> </td>
{% package_cols maintainer %} {% package_cols maintainer %}
{% if request.GET.extras %}
<td>
<img src="{% url euscan.views.chart_maintainer maintainer.maintainers__id 'packages-monthly-small' %}" />
<img src="{% url euscan.views.chart_maintainer maintainer.maintainers__id 'versions-monthly-small' %}" />
</td>
{% endif %}
</tr> </tr>
{% endfor %} {% endfor %}
</tbody> </tbody>