X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=templates%2Fpatchwork%2Fpatch-list.html;h=d4dd325c61fc4899548dd3cb00edc4495f2c7480;hb=f734a99ccbb6b1a793b04a0926944a0283f55334;hp=14a0f0cfd7cd2e87b6cc701d1efb5eb50bf6dbf2;hpb=f6113ee4e29241c03560ba0854a885c67ea1903a;p=patchwork diff --git a/templates/patchwork/patch-list.html b/templates/patchwork/patch-list.html index 14a0f0c..d4dd325 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,83 +35,108 @@
- - - {% 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 %} @@ -111,6 +149,7 @@ {% 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" %} - Submitter - {% else %} - Submitter - {% endifequal %} - - {% ifequal order.name "delegate" %} - Delegate - {% else %} - Delegate - {% endifequal %} - - {% ifequal order.name "state" %} - State - {% else %} - State - {% endifequal %} -
{{ patch.state }}
{% include "patchwork/pagination.html" %}