| 1 |
{% extends "mini_buildd/base.html" %} |
| 2 |
{% block title %}{% block titledup %}User Profile{% endblock %}{% endblock %} |
| 3 |
|
| 4 |
{% block content %} |
| 5 |
<section> |
| 6 |
<h2>Package (EMail) Notifications</h2> |
| 7 |
|
| 8 |
{% mbd_token as table_id %} |
| 9 |
<div id="mbd-package-notifications-table_wrapper"> |
| 10 |
<table id="{{ table_id }}" style="width: 100%"> |
| 11 |
{% mbd_datatable table_id order='[0, "desc"]' columns='[null, null, {"searchable": false, "orderable": false}, {"searchable": false, "orderable": false}]' %} |
| 12 |
<thead> |
| 13 |
<tr> |
| 14 |
<th>Source</th> |
| 15 |
<th>Distribution</th> |
| 16 |
<th>Description</th> |
| 17 |
<th>Actions</th> |
| 18 |
</tr> |
| 19 |
</thead> |
| 20 |
<tbody> |
| 21 |
{% for s in view.mbd_subscriptions %} |
| 22 |
<tr> |
| 23 |
<td>{{ s.package }}</td> |
| 24 |
<td>{{ s.distribution }}</td> |
| 25 |
<td>{{ s }}</td> |
| 26 |
<td>{% mbd_api "unsubscribe" value_source=s.package value_distribution=s.distribution hide_options=True %}</td> |
| 27 |
</tr> |
| 28 |
{% endfor %} |
| 29 |
</tbody> |
| 30 |
<tfoot> |
| 31 |
<tr> |
| 32 |
<th colspan="4">{% mbd_api "subscribe" %}</th> |
| 33 |
</tr> |
| 34 |
</tfoot> |
| 35 |
</table> |
| 36 |
</div> |
| 37 |
</section> |
| 38 |
|
| 39 |
<section> |
| 40 |
<h2>Package uploads</h2> |
| 41 |
<p> |
| 42 |
Status: <code class="mbd-model-status-{{ user.uploader.get_status_display }}">{{ user.uploader|default:"ERROR: User has no uploader config. Please contact administrator." }}</code> |
| 43 |
</p> |
| 44 |
|
| 45 |
<p> |
| 46 |
<em>Note:</em> Setting a new key will <em>automatically |
| 47 |
deactivate your uploader profile</em>; an administrator |
| 48 |
needs to (verify your key and) manually re-activate you |
| 49 |
later. |
| 50 |
</p> |
| 51 |
{% mbd_api "set_user_key" value_key=user.uploader.key %} |
| 52 |
</section> |
| 53 |
{% endblock %} |