X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=templates%2Fpatchwork%2Fpatch-list.html;h=675f67ff22885c7738d1b3235c3c360032c236f5;hb=d4a2c1f8792f52fec0c881ab38c91635840a50c0;hp=4c6b8a508f18a60fae3ac5ff1ff60d227b768489;hpb=2087fbfd96a42340e2a9057fe78cac4c3524b424;p=patchwork diff --git a/templates/patchwork/patch-list.html b/templates/patchwork/patch-list.html index 4c6b8a5..675f67f 100644 --- a/templates/patchwork/patch-list.html +++ b/templates/patchwork/patch-list.html @@ -1,5 +1,6 @@ {% load person %} {% load listurl %} +{% load static %} {% include "patchwork/pagination.html" %} @@ -9,6 +10,20 @@ {% include "patchwork/filters.html" %} + {% if order.editable %} + +
+ {% csrf_token %} + + + + + +
+ + {% endif %} @@ -20,99 +35,144 @@ {% endif %}
+{% csrf_token %} - - - {% if user.is_authenticated %} - - {% endif %} +
- -
+ + + {% if user.is_authenticated %} + + {% endif %} - - - - - - - - - + - + + + + + -{% if page %} + + + + + +{% if page.paginator.count %} + {% for patch in page.object_list %} - + {% if user.is_authenticated %} {% endif %} - + - + {% 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 %} + {% 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.name|default:"[no subject]" }} {{ patch.date|date:"Y-m-d" }}{{ patch.submitter|personify }}{{ patch.submitter|personify:project }} {{ patch.delegate.username }} {{ patch.state }}
{% include "patchwork/pagination.html" %} @@ -147,7 +207,7 @@ - + @@ -159,15 +219,6 @@

Bundling

-
Create bundle: