advocate.html 2.28 KB
Newer Older
1
2
{% extends "wizard/base.html" %}
{% load nm %}
3
{% load i18n %}
4
5
6

{% block content %}

7
<h1>{% trans "Advocate someone" %}</h1>
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
{% if request.user.is_authenticated %}

  <form action="" class="mb-3" method="POST">{% csrf_token %}
    <p>{% trans "Who do you want to advocate? I can search names, nicknames, and OpenPGP key fingerprints." %}</p>
    {{form.as_p}}
    <button class="btn btn-primary" type="submit">{% trans "Search" %}</button>
  </form>

  {% if processes %}
  <p>{% trans "These people are ready to be advocated; click on a name to go to the advocacy page:" %}</p>

  <table class="table tables-sm">
    <thead>
        <tr>
        <th>{% trans "Name" %}</th>
        <th>{% trans "UID" %}</th>
        <th>{% trans "OpenPGP fingerprint" %}</th>
        <th>{% trans "Current status" %}</th>
        <th>{% trans "Applying for" %}</th>
      </tr>
    </thead>
    <tbody>
      {% for process, adv in processes.items %}
      {% with process.person as person %}
      <tr>
        <td><a href="{{adv}}">{{person.fullname}}</a></td>
        <td>{{person.ldap_fields.uid}}</td>
        <td>{{person.fpr|fingerprint}}</td>
        <td>{{person|desc_status}}</td>
        <td>{{process.applying_for}}</td>
      </tr>
      {% endwith %}
      {% endfor %}
    </tbody>
  </table>
  {% endif %}


  {% if people %}
  <p>{% blocktrans %}These people have not currently applied to change their status in Debian. If
  the person you want to advocate is in this list, they need to request a new
  status first:{% endblocktrans %}</p>

  <table class="table table-sm">
    <thead>
      <tr>
        <th>{% trans "Name" %}</th>
        <th>{% trans "UID" %}</th>
        <th>{% trans "OpenPGP fingerprint" %}</th>
        <th>{% trans "Current status" %}</th>
      </tr>
    </thead>
    <tbody>
      {% for person in people %}
      <tr>
        <td><a href="{{person.get_absolute_url}}">{{person.fullname}}</a></td>
        <td>{{person.ldap_fields.uid}}</td>
        <td>{{person.fpr|fingerprint}}</td>
        <td>{{person|desc_status}}</td>
      </tr>
      {% endfor %}
    </tbody>
  </table>
  {% endif %}
{% else %}
74
<p class="lead">{% trans "This wizard only works when you are logged into the site" %}</p>
75
76
{% endif %}

77
{% if request.signon_identities %}
78
79
80
81
82
{% include "wizard/whoami.html" %}
{% endif %}

{% endblock %}