2011-04-14 19:28:38 +02:00
|
|
|
{% extends "euscan/_datatable.html" %}
|
|
|
|
|
2011-04-25 22:27:32 +02:00
|
|
|
{% load packages %}
|
2012-05-06 20:27:14 +02:00
|
|
|
{% load url from future %}
|
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-04-04 14:33:40 +02:00
|
|
|
<th><img src="{{ STATIC_URL }}img/gentoo-icon.png" alt="gentoo" title="Versions in Gentoo" /></th>
|
|
|
|
<th><img src="{{ STATIC_URL }}img/overlay-icon.png" alt="overlays" title="Versions in Overlays" /></th>
|
|
|
|
<th><img src="{{ STATIC_URL }}img/upstream-icon.png" alt="upstream" title="Versions only upstream" /></th>
|
|
|
|
<th><img src="{{ STATIC_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>
|
2012-05-06 20:27:14 +02:00
|
|
|
<a href="{% url "category" category.category %}">{{ category.category }}</a>
|
2011-04-25 22:27:32 +02:00
|
|
|
{% package_bar category %}
|
|
|
|
</td>
|
|
|
|
{% package_cols category %}
|
2012-02-14 14:53:33 +01:00
|
|
|
{% if request.GET.extras %}
|
|
|
|
<td>
|
2012-05-06 20:27:14 +02:00
|
|
|
<img src="{% url "chart_category" category.category 'packages-monthly-small' %}" />
|
|
|
|
<img src="{% url "chart_category" category.category 'versions-monthly-small' %}" />
|
2012-02-14 14:53:33 +01:00
|
|
|
</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 %}
|