2011-04-14 19:28:38 +02:00
|
|
|
{% extends "euscan/_datatable.html" %}
|
|
|
|
|
2011-04-25 22:27:32 +02:00
|
|
|
{% load packages %}
|
2011-04-15 00:24:45 +02:00
|
|
|
|
|
|
|
{% block title %}
|
|
|
|
{{ block.super }} - categories
|
|
|
|
{% endblock %}
|
2011-04-14 19:28:38 +02:00
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
<h2>Categories</h2>
|
2011-04-25 22:27:32 +02:00
|
|
|
|
2011-04-15 00:24:45 +02:00
|
|
|
<table id="table" class="display">
|
2011-04-14 19:28:38 +02:00
|
|
|
<thead>
|
|
|
|
<th>Category</th>
|
2012-03-05 14:46:34 +01:00
|
|
|
<th><img src="{{ MEDIA_URL }}img/gentoo-icon.png" alt="gentoo" title="Versions in Gentoo" /></th>
|
|
|
|
<th><img src="{{ MEDIA_URL }}img/overlay-icon.png" alt="overlays" title="Versions in Overlays" /></th>
|
|
|
|
<th><img src="{{ MEDIA_URL }}img/upstream-icon.png" alt="upstream" title="Versions only upstream" /></th>
|
|
|
|
<th><img src="{{ MEDIA_URL }}img/freshness-icon.png" title="Freshness" /></th>
|
2012-02-14 14:53:33 +01:00
|
|
|
{% if request.GET.extras %}
|
|
|
|
<th>Graphs</th>
|
|
|
|
{% endif %}
|
2011-04-14 19:28:38 +02:00
|
|
|
</thead>
|
2011-04-15 00:24:45 +02:00
|
|
|
<tbody>
|
2011-04-14 19:28:38 +02:00
|
|
|
{% for category in categories %}
|
2011-04-25 22:27:32 +02:00
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<a href="{% url euscan.views.category category.category %}">{{ category.category }}</a>
|
|
|
|
{% package_bar category %}
|
|
|
|
</td>
|
|
|
|
{% package_cols category %}
|
2012-02-14 14:53:33 +01:00
|
|
|
{% 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 %}
|
2011-04-14 19:28:38 +02:00
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
2011-04-15 00:24:45 +02:00
|
|
|
</tbody>
|
2011-04-14 19:28:38 +02:00
|
|
|
</table>
|
|
|
|
{% endblock %}
|