X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=templates%2Fpatchwork%2Fpatch-list.html;h=43e05503429f09af61999dfd4706c7a7545bb5cf;hb=88e77da6413f137488da91a3f1ab1a67b261cfb4;hp=a0a8cec98a7c579bbcb729302626f33fa6774352;hpb=053c7a136bb8f2c3310708af4340aa7a2a6117e7;p=patchwork diff --git a/templates/patchwork/patch-list.html b/templates/patchwork/patch-list.html index a0a8cec..43e0550 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,67 +34,124 @@ {% endif %}
+{% csrf_token %} - - - {% if patchform or bundle %} - - - - - - - +
- {% endif %} - - - {% ifequal order.name "name" %} - Patch - {% else %} - Patch - {% endifequal %} - - {% ifequal order.name "date" %} - Date - {% else %} - Date - {% endifequal %} - - {% ifequal order.name "submitter" %} - Submiter - {% else %} - Submitter - {% endifequal %} - - {% ifequal order.name "state" %} - State - {% else %} - State - {% endifequal %} -
+ + + {% if user.is_authenticated %} + + {% endif %} + + + + + + + + + + - + + {% if page %} + {% for patch in page.object_list %} - - {% if patchform or bundle %} + + {% 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" %} @@ -127,15 +198,6 @@

Bundling

-
Create bundle: