From ddb04aaac7d9875f1dfd7970944dab6aa6557099 Mon Sep 17 00:00:00 2001 From: Jeremy Kerr Date: Fri, 22 Oct 2010 14:14:10 +0800 Subject: Add support for git-pull requests Add a a pull_url to the Patch object, and update the parser to look for git-pull style emails. Requires SQL migration script. Signed-off-by: Jeremy Kerr --- templates/patchwork/patch.html | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'templates/patchwork/patch.html') diff --git a/templates/patchwork/patch.html b/templates/patchwork/patch.html index c716a33..b9addc6 100644 --- a/templates/patchwork/patch.html +++ b/templates/patchwork/patch.html @@ -44,9 +44,11 @@ function toggle_headers(link_id, headers_id) Download mbox | + >mbox +{% if patch.content %}| patch +{% endif %} @@ -202,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 %} @@ -215,11 +220,14 @@ function toggle_headers(link_id, headers_id) {% endfor %} +{% if patch.content %}

Patch

 {{ patch|patchsyntax }}
 
+{% endif %} + {% endblock %} -- cgit v1.2.3