X-Git-Url: https://git.ozlabs.org/?p=patchwork;a=blobdiff_plain;f=templates%2Fpatchwork%2Fpatch-list.html;h=bc9abe943e62364bd1a5fbcea698e9e52c79467b;hp=a0a8cec98a7c579bbcb729302626f33fa6774352;hb=16837a924858d296f288a0e9566f16e33f21195c;hpb=053c7a136bb8f2c3310708af4340aa7a2a6117e7 diff --git a/templates/patchwork/patch-list.html b/templates/patchwork/patch-list.html index a0a8cec..bc9abe9 100644 --- a/templates/patchwork/patch-list.html +++ b/templates/patchwork/patch-list.html @@ -9,6 +9,19 @@ {% include "patchwork/filters.html" %} + {% if order.editable %} + +
+ + + + + +
+ + {% endif %} @@ -22,65 +35,121 @@
- - - {% if patchform or bundle %} -
- {% endif %} + + + + {% 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 %} + - {% 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 %} -
{{ patch.name }} {{ patch.date|date:"Y-m-d" }} {{ patch.submitter|personify }}{{ patch.delegate.username }} {{ patch.state }}
{% include "patchwork/pagination.html" %}