summaryrefslogtreecommitdiff
path: root/templates/patchmetrics/teams.html
blob: 143547a9b708c6533924ceb9b53c28e2db56b53d (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
{% extends "base.html" %}

{% block title %}Team metrics{% endblock %}
{% block heading %}Team metrics{% endblock %}

{% block body %}

<h1>Patches submitted (and accepted) per team</h1>

<table class="patchlist">
  <tr>
    <th>Team</th>
    {% for month in months %}
      <th style="text-align: right">{{ month }}</th>
    {% endfor %}
  </tr>

  {% for team_data in teams_data %}
    <tr class="{% cycle 'odd' 'even' %}">
      <td>
        <a href="{% url patchmetrics.views.team team_id=team_data.0.name %}"
          >{{team_data.0.display_name}}</a>
      </td>
      {% for count in team_data.1 %}
        <td style="text-align: right">{{ count.0 }}
          (<span style="color: green">{{ count.1 }}</span>)</td>
      {% endfor %}
    </tr>
  {% endfor %}
</table>

<p>The total number of patches here should not be expected to match the totals
on the front page because some people are members of multiple teams and their
patches will be included in the counts of all teams they are a member of.</p>

{% endblock %}