X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=templates%2Fpatchwork%2Fpatch-list.html;h=770f0051ea83e50f9d6f2494bc7da31972d0ab11;hb=e3f9cdfdfa96f5074a31fe2de0caf0ac52b1aff9;hp=4c6b8a508f18a60fae3ac5ff1ff60d227b768489;hpb=2087fbfd96a42340e2a9057fe78cac4c3524b424;p=patchwork diff --git a/templates/patchwork/patch-list.html b/templates/patchwork/patch-list.html index 4c6b8a5..770f005 100644 --- a/templates/patchwork/patch-list.html +++ b/templates/patchwork/patch-list.html @@ -9,6 +9,20 @@ {% include "patchwork/filters.html" %} + {% if order.editable %} + +
+ {% csrf_token %} + + + + + +
+ + {% endif %} @@ -20,99 +34,124 @@ {% endif %}
+{% csrf_token %} - - - {% if user.is_authenticated %} - - {% endif %} - - - - - - - - - - +
- - - {% 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 %} -
+ + + {% if user.is_authenticated %} + + {% endif %} + + + + + + + + + + - + + {% if page %} + {% for patch in page.object_list %} - + {% if user.is_authenticated %} {% endif %} + >{{ patch.name|default:"[no subject]" }} {% endfor %} +
+ + + {% ifequal order.name "name" %} + Patch + {% else %} + {% if not order.editable %} + Patch + {% else %} + Patch + {% endif %} + {% endifequal %} + + {% ifequal order.name "date" %} + Date + {% else %} + {% if not order.editable %} + Date + {% else %} + Date + {% endif %} + {% endifequal %} + + {% ifequal order.name "submitter" %} + Submitter + {% else %} + {% if not order.editable %} + Submitter + {% else %} + Submitter + {% endif %} + {% endifequal %} + + {% ifequal order.name "delegate" %} + Delegate + {% else %} + {% if not order.editable %} + Delegate + {% else %} + Delegate + {% endif %} + {% endifequal %} + + {% ifequal order.name "state" %} + State + {% else %} + {% if not order.editable %} + State + {% else %} + State + {% endif %} + {% endifequal %} +
{{ patch.name }} {{ patch.date|date:"Y-m-d" }} {{ patch.submitter|personify }} {{ patch.delegate.username }} {{ patch.state }}
{% include "patchwork/pagination.html" %} @@ -147,7 +186,7 @@ - + @@ -159,15 +198,6 @@

Bundling

-
Create bundle: