summaryrefslogtreecommitdiff
path: root/templates/todolists/public_list.html
blob: fe5ffb5dfd01d12334052d3630b59d321185be18 (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
{% extends "base.html" %}

{% block title %}Arch Linux - Todo Lists{% endblock %}

{% block content %}
<div class="box">
    <h2>Developer Todo Lists</h2>
    <div id="public_todo_lists">
        {% for list in todo_lists %}
            <h4>{{list.name}}</h4>
            <div class="todo_list">
                <p>{{list.description|safe|linebreaks}}</p>
                <table "todo-pkglist-{{ list.id }}" class="results todo-table">
                    <thead>
                        <tr>
                            <th>Name</th>
                            <th>Arch</th>
                            <th>Repo</th>
                            <th>Maintainer</th>
                            <th>Status</th>
                        </tr>
                    </thead>
                    <tbody>
                        {% for pkg in list.packages %}
                        <tr class="{% cycle 'odd' 'even' %}">
                            <td><a href="{{ pkg.pkg.get_absolute_url }}"
                                    title="View package details for {{ pkg.pkg.pkgname }}">{{ pkg.pkg.pkgname }}</a></td>
                            <td>{{ pkg.pkg.arch.name }}</td>
                            <td>{{ pkg.pkg.repo.name|capfirst }}</td>
                            <td>{{ pkg.pkg.maintainers|join:', ' }}</td>
                            <td>
                                {% if pkg.complete %}
                                <span class="complete">Complete</a>
                                {% else %}
                                <span class="incomplete">Incomplete</a>
                                {% endif %}
                            </td>
                        </tr>
                        {% endfor %}
                    </tbody>
                </table>
            </div>
        {% endfor %}
    </div>
</div>
{% load cdn %}{% jquery %}
<script type="text/javascript" src="/media/jquery.tablesorter.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
    $(".results").tablesorter({widgets: ['zebra'], sortList: [[0,0], [1,0]]});
});

</script>
{% endblock %}