diff options
author | Guilherme Salgado <guilherme.salgado@linaro.org> | 2011-02-23 06:34:40 +0000 |
---|---|---|
committer | Jeremy Kerr <jk@ozlabs.org> | 2011-03-08 15:07:33 +0800 |
commit | f7a3c5dff0da19e6bd737c51187a1f5aa7373c67 (patch) | |
tree | 416a2857c6389c85a057a2a9f16b0a8eb67eef4d /templates | |
parent | 5d56a58406cbc06012d1f1c994be4b5118ecda9c (diff) | |
download | patchwork-f7a3c5dff0da19e6bd737c51187a1f5aa7373c67.tar patchwork-f7a3c5dff0da19e6bd737c51187a1f5aa7373c67.tar.gz |
Remove unused templates and some code for processing them
These seem to be what was used in the past to archive/unarchive and delete
patches.
Signed-off-by: Guilherme Salgado <guilherme.salgado@linaro.org>
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'templates')
-rw-r--r-- | templates/patchwork/patch-form.html | 91 | ||||
-rw-r--r-- | templates/patchwork/patch-list.html | 9 | ||||
-rw-r--r-- | templates/patchwork/patch.html | 33 | ||||
-rw-r--r-- | templates/patchwork/patchlist.html | 37 |
4 files changed, 0 insertions, 170 deletions
diff --git a/templates/patchwork/patch-form.html b/templates/patchwork/patch-form.html deleted file mode 100644 index aae673a..0000000 --- a/templates/patchwork/patch-form.html +++ /dev/null @@ -1,91 +0,0 @@ - -<div class="patchform" - style="border: thin solid black; padding-left: 0.8em; margin-top: 2em;"> - - <div class="patchform-properties" - style="float: left; margin-right: 4em;"> - <h3>Properties</h3> - <table class="form"> - <tr> - <th>Change state:</th> - <td>{{ patchform.state }}</td> - </tr> - <tr> - <th>Delegate to:</td> - <td>{{ patchform.delegate }}</td> - </tr> - <tr> - <td></td> - <td> - <input type="submit" value="Update"> - </td> - </tr> - </table> - </form> - </div> - - <div class="patchform-actions" style="padding-left: 4em;"> - <h3>Actions</h3> - <table class="form"> - <tr> - <td>Ack:</td> - <td> - <form action="{% url patchwork.views.patch patch=patch.id %}" - method="post"> - {% csrf_token %} - <input type="hidden" name="action" value="act"/> - <input type="submit" value="Ack"/> - </form> - </td> - </tr> - <tr> - <td>Create bundle:</td> - <td> - {% if createbundleform.name.errors %} - <span class="errors">{{createbundleform.errors}}</span> - {% endif %} - <form method="post"> - {% csrf_token %} - <input type="hidden" name="action" value="createbundle"/> - {{ createbundleform.name }} - <input value="Create" type="submit"/> - </form> - </td> - </tr> -{% if bundles %} - <tr> - <td>Add to bundle:</td> - <td> - <form action="{% url patchwork.views.bundle.setbundle %}" method="post"> - {% csrf_token %} - <input type="hidden" name="action" value="add"/> - <input type="hidden" name="patch_id" value="{{ patch.id }}"/> - <select name="name"/> - {% for bundle in bundles %} - <option value="{{bundle.id}}">{{bundle.name}}</option> - {% endfor %} - </select> - <input value="Add" type="submit"/> - </form> - </td> - </tr> -{% endif %} - <tr> - <td>Archive:</td> - <td> - <form method="post"> - {% csrf_token %} - <input type="hidden" name="action" value="archive"/> - <input type="submit" value="Archive"/> - </form> - </td> - </tr> - </table> - </form> - - </div> - - <div style="clear: both;"> - </div> -</div> - diff --git a/templates/patchwork/patch-list.html b/templates/patchwork/patch-list.html index fe4d606..43e0550 100644 --- a/templates/patchwork/patch-list.html +++ b/templates/patchwork/patch-list.html @@ -198,15 +198,6 @@ <div class="patchform patchform-bundle"> <h3>Bundling</h3> <table class="form"> - <!-- - <tr> - <td>Ack:</td> - <td> - <input type="submit" name="action" value="Ack"/> - </form> - </td> - </tr> - --> <tr> <td>Create bundle:</td> <td> diff --git a/templates/patchwork/patch.html b/templates/patchwork/patch.html index b9addc6..25c9962 100644 --- a/templates/patchwork/patch.html +++ b/templates/patchwork/patch.html @@ -127,19 +127,6 @@ function toggle_headers(link_id, headers_id) <div class="patchform patchform-bundle"> <h3>Bundling</h3> <table class="form"> - <!-- - <tr> - <td>Ack:</td> - <td> - <form action="{% url patchwork.views.patch.patch patch_id=patch.id %}" - method="post"> - {% csrf_token %} - <input type="hidden" name="action" value="act"/> - <input type="submit" value="Ack"/> - </form> - </td> - </tr> - --> <tr> <td>Create bundle:</td> <td> @@ -180,26 +167,6 @@ function toggle_headers(link_id, headers_id) </div> {% endif %} -{% if actionsform %} - <div class="patchform patchform-actions"> - <h3>Actions</h3> - <table class="form"> - <tr> - <td>Ack:</td> - <td> - <form action="{% url patchwork.views.patch.patch patch_id=patch.id %}" - method="post"> - {% csrf_token %} - <input type="hidden" name="action" value="act"/> - <input type="submit" value="Ack"/> - </form> - </td> - </tr> - </table> - </form> - </div> - -{% endif %} <div style="clear: both;"> </div> </div> diff --git a/templates/patchwork/patchlist.html b/templates/patchwork/patchlist.html deleted file mode 100644 index d6709cd..0000000 --- a/templates/patchwork/patchlist.html +++ /dev/null @@ -1,37 +0,0 @@ - -{% load person %} - -{% if patches %} -<form method="post"> -{% csrf_token %} -<table class="patchlist"> - <tr> - {% if patchform %} - <th/> - {% endif %} - <th><a class="colinactive" href="list?person=846&order=patch">Patch</a></th> - <th><a class="colinactive" href="list?person=846&order=date">Date</a></th> - <th><a class="colinactive" href="list?person=846&order=submitter">Submitter</a></th> - <th><a class="colinactive" href="list?person=846&order=state">State</a></th> - </tr> - {% for patch in patches %} - <tr> - {% if patchform %} - <td> - <input type="hidden" name="patch_ids" value="{{ patch.id }}"/> - <input type="checkbox" name="patch-{{patch.id}}"> - </td> - {% endif %} - <td><a href="{% url patchwork.views.patch.patch patch_id=patch.id %}">{{ patch.name }}</a></td> - <td>{{ patch.date|date:"Y-m-d" }}</td> - <td>{{ patch.submitter|personify }}</td> - <td>{{ patch.state }}</td> - </tr> - {% endfor %} -</table> - -{% include "patchwork/patch-form.html" %} - -{% else %} - <p>No patches to display</p> -{% endif %} |