summaryrefslogtreecommitdiffstats
path: root/templates/packages/signoffs.html
blob: 4a2f6c99835f308045d3ee699a4d550417190d64 (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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
{% extends "base.html" %}
{% load package_extras %}

{% block title %}Arch Linux - Package Signoffs{% endblock %}
{% block navbarclass %}anb-packages{% endblock %}

{% block content %}
<div id="dev-signoffs" class="box">

    <h2>Package Signoffs</h2>

    <p>{{ signoff_groups|length }} signoff group{{ signoff_groups|pluralize }} found.
    A "signoff group" consists of packages grouped by pkgbase, architecture, and repository.</p>

    <div class="box filter-criteria">
        <h3>Filter Displayed Signoffs</h3>
        <form id="signoffs_filter" method="post" action=".">
        <fieldset>
            <legend>Select filter criteria</legend>
            {% for arch in arches %}
            <div><label for="id_arch_{{ arch.name }}" title="Architecture {{ arch.name }}">Arch {{ arch.name }}</label>
                <input type="checkbox" name="arch_{{ arch.name }}" id="id_arch_{{ arch.name }}" class="arch_filter" value="{{ arch.name }}" checked="checked"/></div>
            {% endfor %}
            <div><label for="id_pending" title="Packages with not enough signoffs">Only Pending Approval</label>
                <input type="checkbox" name="pending" id="id_pending" value="pending"/></div>
            <div ><label>&nbsp;</label><input title="Reset search criteria" type="button" id="criteria_reset" value="Reset"/></div>
        </fieldset>
        </form>
    </div>

    <table id="signoffs" class="results">
        <thead>
            <tr>
                <th>Package Base/Version</th>
                <th>Arch</th>
                <th>Target Repo</th>
                <th># of Packages</th>
                <th>Last Updated</th>
                <th>Approved</th>
                <th>Signoffs</th>
            </tr>
        </thead>
        <tbody id="tbody_signoffs">
            {% for group in signoff_groups %}
            {% with group.package as pkg %}
            <tr class="{% cycle 'odd' 'even' %} {{ pkg.arch.name }}">
                <td>{% pkg_details_link pkg %} {{ pkg.full_version }}</td>
                <td>{{ pkg.arch.name }}</td>
                <td>{{ group.target_repo }}</td>
                <td>{{ group.packages|length }}</td>
                <td>{{ pkg.last_update|date }}</td>
                <td class="signoff-{{ group.approved|yesno }}">
                    {{ group.approved|yesno|capfirst }}</td>
                <td>{% include "packages/signoff_cell.html" %}</td>
            </tr>
            {% endwith %}
            {% endfor %}
        </tbody>
    </table>
</div>
{% load cdn %}{% jquery %}
<script type="text/javascript" src="/media/jquery.tablesorter.min.js"></script>
<script type="text/javascript" src="/media/archweb.js"></script>
<script type="text/javascript">
$(document).ready(function() {
    $('a.signoff-link').click(signoff_package);
    $(".results").tablesorter({widgets: ['zebra'], sortList: [[0,0]],
        headers: { 6: { sorter: false } } });
    $('#signoffs_filter input').change(filter_signoffs);
    $('#criteria_reset').click(filter_signoffs_reset);
    // fire function on page load to ensure the current form selections take effect
    filter_signoffs();
});
</script>
{% endblock %}