2011-04-14 19:28:38 +02:00
|
|
|
{% extends "euscan/_datatable.html" %}
|
|
|
|
|
|
|
|
{% load sub %}
|
2011-04-15 00:24:45 +02:00
|
|
|
{% load mul %}
|
|
|
|
|
|
|
|
{% block title %}
|
|
|
|
{{ block.super }} - categories
|
|
|
|
{% endblock %}
|
2011-04-14 19:28:38 +02:00
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
<h2>Categories</h2>
|
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>
|
|
|
|
<th>Ebuilds</th>
|
|
|
|
<th>Unpackaged</th>
|
|
|
|
</thead>
|
2011-04-15 00:24:45 +02:00
|
|
|
<tbody>
|
2011-04-14 19:28:38 +02:00
|
|
|
{% for category in categories %}
|
2011-04-15 00:24:45 +02:00
|
|
|
{% if category.n_versions == category.n_packaged %}
|
|
|
|
<tr class="gradeA">
|
|
|
|
{% else %}{% if category.n_versions < category.n_packaged|mul:2 %}
|
|
|
|
<tr class="gradeC">
|
|
|
|
{% else %}
|
|
|
|
<tr class="gradeX">
|
|
|
|
{% endif %}{% endif %}
|
|
|
|
<td><a href="{% url euscan.views.category category.category %}">{{ category.category }}</a></td>
|
2011-04-14 19:28:38 +02:00
|
|
|
<td>{{ category.n_packaged }}</td>
|
|
|
|
<td>{{ category.n_versions|sub:category.n_packaged }}</td>
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
2011-04-15 00:24:45 +02:00
|
|
|
</tbody>
|
2011-04-14 19:28:38 +02:00
|
|
|
</table>
|
|
|
|
{% endblock %}
|