euscan-ng/euscanwww/templates/euscan/categories.html
Corentin Chary 10e491f972 euscanwww: finish ``world'' feature
Signed-off-by: Corentin Chary <corentincj@iksaif.net>
2011-04-16 11:44:57 +02:00

35 lines
834 B
HTML

{% extends "euscan/_datatable.html" %}
{% load sub %}
{% load mul %}
{% block title %}
{{ block.super }} - categories
{% endblock %}
{% block content %}
<h2>Categories</h2>
<table id="table" class="display">
<thead>
<th>Category</th>
<th>Ebuilds</th>
<th>Unpackaged</th>
</thead>
<tbody>
{% for category in categories %}
{% if category.n_versions == category.n_packaged %}
<tr class="gradeA">
{% else %}{% if category.n_versions < category.n_packaged|mul:1.5 %}
<tr class="gradeC">
{% else %}
<tr class="gradeX">
{% endif %}{% endif %}
<td><a href="{% url euscan.views.category category.category %}">{{ category.category }}</a></td>
<td>{{ category.n_packaged }}</td>
<td>{{ category.n_versions|sub:category.n_packaged }}</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endblock %}