aboutsummaryrefslogtreecommitdiff
blob: 3fba855c1b64b9f727b62646a00a69e6bb0abf5b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
{% extends "euscan/_datatable.html" %}

{% load packages %}

{% block title %}
{{ block.super }} - categories
{% endblock %}

{% block content %}
<h2>Categories</h2>

<table id="table" class="display">
  <thead>
    <th>Category</th>
    <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>
    {% if request.GET.extras %}
    <th>Graphs</th>
    {% endif %}
  </thead>
  <tbody>
  {% for category in categories %}
  <tr>
    <td>
      <a href="{% url djeuscan.views.category category.category %}">{{ category.category }}</a>
      {% package_bar category %}
    </td>
    {% package_cols category %}
    {% if request.GET.extras %}
    <td>
      <img src="{% url djeuscan.views.chart_category category.category 'packages-monthly-small' %}" />
      <img src="{% url djeuscan.views.chart_category category.category 'versions-monthly-small' %}" />
    </td>
    {% endif %}
  </tr>
  {% endfor %}
  </tbody>
</table>
{% endblock %}