euscanwww: charts, about, etc...

Signed-off-by: Corentin Chary <corentincj@iksaif.net>
This commit is contained in:
Corentin Chary
2011-04-25 22:27:32 +02:00
parent 13dd433996
commit 0aba96f66f
30 changed files with 504 additions and 121 deletions

View File

@ -1,7 +1,6 @@
{% extends "euscan/_datatable.html" %}
{% load sub %}
{% load mul %}
{% load packages %}
{% block title %}
{{ block.super }} - herds
@ -12,25 +11,20 @@
<table id="table" class="display">
<thead>
<th>Herd</th>
<th>Ebuilds</th>
<th>Gentoo</th>
<th>Overlays</th>
<th>Unpackaged</th>
</thead>
<tbody>
{% for herd in herds %}
{% if herd.n_versions == herd.n_packaged %}
<tr class="gradeA">
{% else %}{% if herd.n_versions < herd.n_packaged|mul:2 %}
<tr class="gradeC">
{% else %}
<tr class="gradeX">
{% endif %}{% endif %}
<tr>
<td>
<a href="{% url euscan.views.herd herd.herds__herd %}">
{{ herd.herds__herd }}
</a>
{% package_bar herd %}
</td>
<td>{{ herd.n_packaged }}</td>
<td>{{ herd.n_versions|sub:herd.n_packaged }}</td>
{% package_cols herd %}
</tr>
{% endfor %}
</tbody>