aboutsummaryrefslogtreecommitdiffstats
path: root/templates/rrs/maintainers.html
blob: b05babe796870a985610b8c46802614228de4f0b (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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
{% extends "rrs/base_toplevel.html" %}
{% load i18n %}
{% load staticfiles %}

{% load url from future %}

{% comment %}

  rrs-web - maintainers page template

  Copyright (C) 2015 Intel Corporation
  Licensed under the MIT license, see COPYING.MIT for details

{% endcomment %}

{% block navs %}
{% endblock %}

{% block content_inner %}
<div class="navbar navbar-table-controls">
    <div class="navbar-inner table-controls">
        <ul class="nav">
            <li class="dropdown">
            <span class="badge" style="margin-top:11px;">{{ maintainer_count }} maintainers</span>
            </li>
        </ul>    		
        <form class="navbar-form pull-right">
            <input type="text" class="input-xxlarge pull-right" placeholder="Search maintainers" id="filter">				
        </form>
    </div>
</div>

{% if maintainer_count == 0 %}
<div class="alert"> No maintainers found</div>
{% else %}
<table class="table table-bordered table-hover statisticstable">
    <thead>
        <tr>
            <th>Maintainer</th>
            <th class="muted">Assigned recipes</th>
            <th class="muted">Up-to-date</th>
            <th>Not updated</th>
            <th class="muted">Can't be updated</th>
            <th class="muted">Unknown</th>
            <th>% done</th>

            {% for w in milestone_weeks %}
            {% if current_week == forloop.counter0 %}
            <th class="current-wk">
            {% else %}
            <th class="muted">
            {% endif %}
            wk{{ w }}
            </th>
            {% endfor %}
        </tr>
</thead>
<tbody>
{% for ml in maintainer_list %}
    <tr>
        <td>
            {{ ml.name }}
        </td>
        <td>
            <a href="{% url 'recipes' milestone_name %}?maintainer_name={{ ml.name|urlencode }}">
                {{ ml.recipes_all }}
            </a>
        </td>
        <td>
            <a href="{% url 'recipes' milestone_name %}?upstream_status={{ "Up-to-date"|urlencode }}&maintainer_name={{ ml.name|urlencode }}">
                {{ ml.recipes_up_to_date }}
            </a>
        </td>
        <td>
            <a href="{% url 'recipes' milestone_name %}?upstream_status={{ "Not updated"|urlencode }}&maintainer_name={{ ml.name|urlencode }}">
                {{ ml.recipes_not_updated }}
            </a>
        </td>
        <td>
            <a href="{% url 'recipes' milestone_name %}?upstream_status={{ "Can't be updated"|urlencode }}&maintainer_name={{ ml.name|urlencode }}">
                {{ ml.recipes_cant_be_updated }}
            </a>
        </td>
        <td>
            <a href="{% url 'recipes' milestone_name %}?upstream_status={{ "Unknown"|urlencode }}&maintainer_name={{ ml.name|urlencode }}">
                {{ ml.recipes_unknown }}
            </a>
        </td>
        <td>{{ ml.percentage_done }}</td>
        {% for number in ml.week_statistics %}
            {% if current_week == forloop.counter0 %}
            <td class="current-wk">
            {% else %}
            <td class="muted">
            {% endif %}
            {{ number }}
            </td>
        {% endfor %}
    </tr>
{% endfor %}
</tbody>
</table>
{% endif %}
{% endblock %}

{% block scripts %}
{% if maintainer_count > 0 %}
<script src="{% static "js/uitablefilter.js" %}"></script>
<script>
$(document).ready(function() {
    $("#filter").keyup(function() { 
        var table = $('.statisticstable');
        $.uiTableFilter(table, this.value);
    });
});
</script>
{% endif %}
{% endblock %}