From patchwork Mon Aug 24 18:23:27 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Damien Lespiau X-Patchwork-Id: 510250 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [103.22.144.68]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id CBA8E1402A0 for ; Tue, 25 Aug 2015 04:30:41 +1000 (AEST) Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 64D971A1BDE for ; Tue, 25 Aug 2015 04:30:41 +1000 (AEST) X-Original-To: patchwork@lists.ozlabs.org Delivered-To: patchwork@lists.ozlabs.org Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by lists.ozlabs.org (Postfix) with ESMTP id A0CE71A1D6E for ; Tue, 25 Aug 2015 04:24:34 +1000 (AEST) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga102.fm.intel.com with ESMTP; 24 Aug 2015 11:24:35 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.15,739,1432623600"; d="scan'208";a="789969388" Received: from smarupud-mobl2.amr.corp.intel.com (HELO strange.amr.corp.intel.com) ([10.254.186.249]) by fmsmga002.fm.intel.com with ESMTP; 24 Aug 2015 11:24:33 -0700 From: Damien Lespiau To: patchwork@lists.ozlabs.org Subject: [PATCH 38/51] patch: Pull the patch between the commit message and comments Date: Mon, 24 Aug 2015 19:23:27 +0100 Message-Id: <1440440620-25937-39-git-send-email-damien.lespiau@intel.com> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1440440620-25937-1-git-send-email-damien.lespiau@intel.com> References: <1440440620-25937-1-git-send-email-damien.lespiau@intel.com> X-BeenThere: patchwork@lists.ozlabs.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Patchwork development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: patchwork-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Patchwork" This follows a logical flow, commit message, patch then comments. Signed-off-by: Damien Lespiau --- patchwork/templates/patchwork/patch.html | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/patchwork/templates/patchwork/patch.html b/patchwork/templates/patchwork/patch.html index 5a45016..eb09990 100644 --- a/patchwork/templates/patchwork/patch.html +++ b/patchwork/templates/patchwork/patch.html @@ -187,6 +187,15 @@ function toggle_headers(link_id, headers_id) {% endfor %} +{% if patch.content %} +

Patch

+
+
+{{ patch|patchsyntax }}
+
+
+{% endif %} + {% for item in patch.answers %} {% if forloop.first %}

Comments

@@ -200,14 +209,4 @@ function toggle_headers(link_id, headers_id) {% endfor %} -{% if patch.content %} -

Patch

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