X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=templates%2Fpatchwork%2Fpatch.html;h=b9addc626d5c30036ad0802d91c1404b15eb2d9a;hb=c6d26672a7ecb8973b361770668661eec2fa24a2;hp=6ca676162fe0494e3e42a28b3c7f6537270696c6;hpb=c561ebe710d6e6a43aa4afc6c2036a215378ce87;p=patchwork diff --git a/templates/patchwork/patch.html b/templates/patchwork/patch.html index 6ca6761..b9addc6 100644 --- a/templates/patchwork/patch.html +++ b/templates/patchwork/patch.html @@ -1,10 +1,10 @@ -{% extends "patchwork/base.html" %} +{% extends "base.html" %} {% load syntax %} {% load person %} {% load patch %} -{% block title %}{{patch.name}} - Patchwork{% endblock %} +{% block title %}{{patch.name}}{% endblock %} {% block heading %}{{patch.name}}{%endblock%} {% block body %} @@ -44,9 +44,11 @@ function toggle_headers(link_id, headers_id) Download mbox | + >mbox +{% if patch.content %}| patch +{% endif %} @@ -57,6 +59,12 @@ function toggle_headers(link_id, headers_id) State {{ patch.state.name }}{% if patch.archived %}, archived{% endif %} +{% if patch.commit_ref %} + + Commit + {{ patch.commit_ref }} + +{% endif %} {% if patch.delegate %} Delegated to: @@ -81,6 +89,7 @@ function toggle_headers(link_id, headers_id)

Patch Properties

+ {% csrf_token %} @@ -122,8 +131,9 @@ function toggle_headers(link_id, headers_id)
Change state:
Ack: - + {% csrf_token %} @@ -137,6 +147,7 @@ function toggle_headers(link_id, headers_id)
{{createbundleform.non_field_errors}}
{% endif %}
+ {% csrf_token %} {% if createbundleform.name.errors %}
{{createbundleform.name.errors}}
@@ -151,6 +162,7 @@ function toggle_headers(link_id, headers_id)
Add to bundle: + {% csrf_token %}
Ack: - + {% csrf_token %} @@ -191,8 +204,11 @@ function toggle_headers(link_id, headers_id) - - +{% if patch.pull_url %} +

Pull-request

+{{ patch.pull_url }} +{% endif %}

Comments

{% for comment in patch.comments %} @@ -204,11 +220,14 @@ function toggle_headers(link_id, headers_id) {% endfor %} +{% if patch.content %}

Patch

 {{ patch|patchsyntax }}
 
+{% endif %} + {% endblock %}