]> git.ozlabs.org Git - patchwork/blob - templates/patchwork/profile.html
35f3d4ff3e3c04f90fe9c3e9d5038a3190ab4c04
[patchwork] / templates / patchwork / profile.html
1 {% extends "patchwork/base.html" %}
2
3 {% block title %}User Profile: {{ user.username }}{% endblock %}
4 {% block heading %}User Profile: {{ user.username }}{% endblock %}
5
6
7 {% block body %}
8
9 <p>
10 {% if user.get_profile.maintainer_projects.count %}
11 Maintainer of
12 {% for project in user.get_profile.maintainer_projects.all %}
13 <a href="{% url patchwork.views.patch.list project_id=project.linkname %}"
14 >{{ project.linkname }}</a>{% if not forloop.last %},{% endif %}{% endfor %}.
15 {% endif %}
16
17 {% if user.get_profile.contributor_projects.count %}
18 Contributor to
19 {% for project in user.get_profile.contributor_projects.all %}
20 <a href="{% url patchwork.views.patch.list project_id=project.linkname %}"
21 >{{ project.linkname }}</a>{% if not forloop.last %},{% endif %}{% endfor %}.
22 {% endif %}
23 </p>
24
25 <h2>Todo</h2>
26 {% if user.get_profile.n_todo_patches %}
27 <p>Your <a href="{% url patchwork.views.user.todo_lists %}">todo
28 list</a> contains {{ user.get_profile.n_todo_patches }}
29 patch{{ user.get_profile.n_todo_patches|pluralize:"es" }}.</p>
30 {% else %}
31 <p>Your todo list contains patches that have been delegated to you. You
32 have no items in your todo list at present.</p>
33 {% endif %}
34 <h2>Bundles</h2>
35
36 {% if bundles %}
37 <table class="bundlelist">
38  <tr>
39   <th>Bundle name</th>
40   <th>Patches</td>
41   <th>Public Link</th>
42  </tr>
43 {% for bundle in bundles %}
44  <tr>
45   <td><a href="{% url patchwork.views.bundle.bundle bundle_id=bundle.id %}"
46    >{{ bundle.name }}</a></td>
47   <td style="text-align: right">{{ bundle.n_patches }}</td>
48   <td>
49    {% if bundle.public %}
50     <a href="{{ bundle.public_url }}">{{ bundle.public_url }}</a>
51    {% endif %}
52   </td>
53  </tr>
54 {% endfor %}
55 </table>
56 {% else %}
57 <p>no bundles</p>
58 {% endif %}
59
60
61 <h2>Linked email addresses</h2>
62 <p>The following email addresses are associated with this patchwork account.
63 Adding alternative addresses allows patchwork to group contributions that
64 you have made under different addressses.</p>
65 <p>Adding a new email address will send a confirmation email to that
66 address.</p>
67 <table class="vertical" style="width: 20em;">
68  <tr>
69   <th>email</th>
70   <th/>
71  </tr>
72  <tr>
73   <td>{{ user.email }}</td>
74   <td></td>
75  </tr>
76 {% for email in linked_emails %}
77  {% ifnotequal email.email user.email %}
78  <tr>
79   <td>{{ email.email }}</td>
80   <td>
81    {% ifnotequal user.email email.email %}
82    <form action="{% url patchwork.views.user.unlink person_id=email.id %}"
83     method="post">
84     <input type="submit" value="Unlink"/>
85    </form>
86     {% endifnotequal %}
87  </tr>
88  {% endifnotequal %}
89 {% endfor %}
90  <tr>
91   <td colspan="2">
92    <form action="{% url patchwork.views.user.link %}" method="post">
93     {{ linkform.email }}
94     <input type="submit" value="Add"/>
95    </form>
96   </td>
97  </tr>
98 </table>
99
100 <h2>Settings</h2>
101
102 <form method="post">
103  <table class="form">
104 {{ profileform }}
105   <tr>
106    <td/>
107    <td>
108     <input type="submit" value="Apply"/>
109    </td>
110   </tr>
111  </table>
112 </form>
113
114 {% endblock %}