summaryrefslogtreecommitdiffstats
path: root/templates/patchwork/profile.html
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2015-05-24 16:57:33 +0800
committerJeremy Kerr <jk@ozlabs.org>2015-05-27 10:26:41 +0800
commitad2762cf775a8dde508de47164d6429f3fd724f1 (patch)
treee63015a468cfe32c961908f0338d423227799815 /templates/patchwork/profile.html
parentf09e982f58384946111d4157fd2b7c2b31b78612 (diff)
downloadpatchwork-ad2762cf775a8dde508de47164d6429f3fd724f1.tar.bz2
patchwork-ad2762cf775a8dde508de47164d6429f3fd724f1.tar.xz
Move to a more recent django project structure
This change updates patchwor to the newer project struture: we've moved the actual application out of the apps/ directory, and the patchwork-specific templates to under the patchwork application. This gives us the manage.py script in the top-level now. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'templates/patchwork/profile.html')
-rw-r--r--templates/patchwork/profile.html144
1 files changed, 0 insertions, 144 deletions
diff --git a/templates/patchwork/profile.html b/templates/patchwork/profile.html
deleted file mode 100644
index 116d6d6..0000000
--- a/templates/patchwork/profile.html
+++ /dev/null
@@ -1,144 +0,0 @@
-{% extends "base.html" %}
-
-{% block title %}User Profile: {{ user.username }}{% endblock %}
-{% block heading %}User Profile: {{ user.username }}{% endblock %}
-
-
-{% block body %}
-
-<p>
-{% if user.profile.maintainer_projects.count %}
-Maintainer of
-{% for project in user.profile.maintainer_projects.all %}
-<a href="{% url 'patchwork.views.patch.list' project_id=project.linkname %}"
->{{ project.linkname }}</a>{% if not forloop.last %},{% endif %}{% endfor %}.
-{% endif %}
-
-{% if user.profile.contributor_projects.count %}
-Contributor to
-{% for project in user.profile.contributor_projects.all %}
-<a href="{% url 'patchwork.views.patch.list' project_id=project.linkname %}"
->{{ project.linkname }}</a>{% if not forloop.last %},{% endif %}{% endfor %}.
-{% endif %}
-</p>
-
-<div class="leftcol">
-<div class="box">
- <h2>Todo</h2>
-{% if user.profile.n_todo_patches %}
- <p>Your <a href="{% url 'patchwork.views.user.todo_lists' %}">todo
- list</a> contains {{ user.profile.n_todo_patches }}
- patch{{ user.profile.n_todo_patches|pluralize:"es" }}.</p>
-{% else %}
- <p>Your todo list contains patches that have been delegated to you. You
- have no items in your todo list at present.</p>
-{% endif %}
-</div>
-
-<div class="box">
-<h2>Linked email addresses</h2>
-<p>The following email addresses are associated with this patchwork account.
-Adding alternative addresses allows patchwork to group contributions that
-you have made under different addresses.</p>
-<p>The "notify?" column allows you to opt-in or -out of automated
-patchwork notification emails. Setting it to "no" will disable automated
-notifications for that address.</p>
-<p>Adding a new email address will send a confirmation email to that
-address.</p>
-<table class="vertical">
- <tr>
- <th>email</th>
- <th>action</th>
- <th>notify?</th>
- </tr>
-{% for email in linked_emails %}
- <tr>
- <td>{{ email.email }}</td>
- <td>
- {% ifnotequal user.email email.email %}
- <form action="{% url 'patchwork.views.user.unlink' person_id=email.id %}"
- method="post">
- {% csrf_token %}
- <input type="submit" value="Unlink"/>
- </form>
- {% endifnotequal %}
- </td>
- <td>
- {% if email.is_optout %}
- <form method="post" action="{% url 'patchwork.views.mail.optin' %}">
- No,
- {% csrf_token %}
- <input type="hidden" name="email" value="{{email.email}}"/>
- <input type="submit" value="Opt-in"/>
- </form>
- {% else %}
- <form method="post" action="{% url 'patchwork.views.mail.optout' %}">
- Yes,
- {% csrf_token %}
- <input type="hidden" name="email" value="{{email.email}}"/>
- <input type="submit" value="Opt-out"/>
- </form>
- {% endif %}
- </td>
- </tr>
-{% endfor %}
- <tr>
- <td colspan="3">
- <form action="{% url 'patchwork.views.user.link' %}" method="post">
- {% csrf_token %}
- {{ linkform.email }}
- <input type="submit" value="Add"/>
- </form>
- </td>
- </tr>
-</table>
-</div>
-</div>
-
-<div class="rightcol">
-
-<div class="box">
-<h2>Bundles</h2>
-
-{% if bundles %}
-<p>You have the following bundle{{ bundle|length|pluralize }}:</p>
-<ul>
-{% for bundle in bundles %}
- <li><a href="{{ bundle.get_absolute_url }}">{{ bundle.name }}</a></li>
-{% endfor %}
-</ul>
-<p>Visit the <a href="{%url 'patchwork.views.bundle.bundles' %}">bundles
- page</a> to manage your bundles.</p>
-{% else %}
-<p>You have no bundles.</p>
-{% endif %}
-</div>
-
-
-<div class="box">
-<h2>Settings</h2>
-
-<form method="post">
- {% csrf_token %}
- <table class="form">
-{{ profileform }}
- <tr>
- <td/>
- <td>
- <input type="submit" value="Apply"/>
- </td>
- </tr>
- </table>
-</form>
-</div>
-
-<div class="box">
-<h2>Authentication</h2>
-<a href="{% url 'django.contrib.auth.views.password_change' %}">Change password</a>
-</div>
-
-</div>
-
-<p style="clear: both"></p>
-
-{% endblock %}