From c105cb0f107a7459abc8c33988d2da24582a7a5a Mon Sep 17 00:00:00 2001 From: Jeremy Kerr Date: Thu, 29 Jan 2009 17:38:46 +1100 Subject: Initial bundle reordering support todo: * implement ajax reorder api * finish migration script * order patches in bundle view Signed-off-by: Jeremy Kerr --- templates/patchwork/bundle.html | 11 +++ templates/patchwork/patch-list.html | 152 ++++++++++++++++++------------------ 2 files changed, 89 insertions(+), 74 deletions(-) (limited to 'templates') diff --git a/templates/patchwork/bundle.html b/templates/patchwork/bundle.html index 68bf570..d9a2785 100644 --- a/templates/patchwork/bundle.html +++ b/templates/patchwork/bundle.html @@ -2,6 +2,17 @@ {% load person %} +{% block headers %} + + + +{% endblock %} {% block title %}{{project.name}}{% endblock %} {% block heading %}bundle: {{bundle.name}}{% endblock %} diff --git a/templates/patchwork/patch-list.html b/templates/patchwork/patch-list.html index 4c6b8a5..5518805 100644 --- a/templates/patchwork/patch-list.html +++ b/templates/patchwork/patch-list.html @@ -22,84 +22,87 @@
- - - {% if user.is_authenticated %} - - {% endif %} +
- -
+ + + {% if user.is_authenticated %} + + {% endif %} + + + + + + + + + + - - - - - - - - - - - + + {% if page %} + {% for patch in page.object_list %} - + {% if user.is_authenticated %} {% endfor %} +
+ + + {% ifequal order.name "name" %} + Patch + {% else %} + Patch + {% endifequal %} + + {% ifequal order.name "date" %} + Date + {% else %} + Date + {% endifequal %} + + {% ifequal order.name "submitter" %} + Submitter + {% else %} + Submitter + {% endifequal %} + + {% ifequal order.name "delegate" %} + Delegate + {% else %} + Delegate + {% endifequal %} + + {% ifequal order.name "state" %} + State + {% else %} + State + {% endifequal %} + - {% ifequal order.name "name" %} - Patch - {% else %} - Patch - {% endifequal %} - - {% ifequal order.name "date" %} - Date - {% else %} - Date - {% endifequal %} - - {% ifequal order.name "submitter" %} - Submitter - {% else %} - Submitter - {% endifequal %} - - {% ifequal order.name "delegate" %} - Delegate - {% else %} - Delegate - {% endifequal %} - - {% ifequal order.name "state" %} - State - {% else %} - State - {% endifequal %} -
@@ -113,6 +116,7 @@ {{ patch.state }}
{% include "patchwork/pagination.html" %} -- cgit v1.2.3