From patchwork Wed Feb 3 21:31:37 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Finucane X-Patchwork-Id: 578397 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 5390B1402DE for ; Thu, 4 Feb 2016 08:34:08 +1100 (AEDT) Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 38A9A1A0286 for ; Thu, 4 Feb 2016 08:34:08 +1100 (AEDT) X-Original-To: patchwork@lists.ozlabs.org Delivered-To: patchwork@lists.ozlabs.org Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by lists.ozlabs.org (Postfix) with ESMTP id DB2571A0293 for ; Thu, 4 Feb 2016 08:32:07 +1100 (AEDT) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga102.jf.intel.com with ESMTP; 03 Feb 2016 13:32:05 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.22,391,1449561600"; d="scan'208";a="740074917" Received: from irvmail001.ir.intel.com ([163.33.26.43]) by orsmga003.jf.intel.com with ESMTP; 03 Feb 2016 13:31:58 -0800 Received: from sivswdev01.ir.intel.com (sivswdev01.ir.intel.com [10.237.217.45]) by irvmail001.ir.intel.com (8.14.3/8.13.6/MailSET/Hub) with ESMTP id u13LVv5d029164; Wed, 3 Feb 2016 21:31:57 GMT Received: from sivswdev01.ir.intel.com (localhost [127.0.0.1]) by sivswdev01.ir.intel.com with ESMTP id u13LVu34018807; Wed, 3 Feb 2016 21:31:56 GMT Received: (from sfinucan@localhost) by sivswdev01.ir.intel.com with id u13LVu86018803; Wed, 3 Feb 2016 21:31:56 GMT From: Stephen Finucane To: patchwork@lists.ozlabs.org Subject: [PATCH 02/19] ui: Don't display the '<' and '>' characters in the message-id Date: Wed, 3 Feb 2016 21:31:37 +0000 Message-Id: <1454535114-18190-3-git-send-email-stephen.finucane@intel.com> X-Mailer: git-send-email 2.0.0 In-Reply-To: <1454535114-18190-1-git-send-email-stephen.finucane@intel.com> References: <1454535114-18190-1-git-send-email-stephen.finucane@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" From: Damien Lespiau Suggested-by: Jani Nikula Signed-off-by: Damien Lespiau Acked-by: Stephen Finucane --- patchwork/templates/patchwork/patch.html | 2 +- patchwork/templatetags/patch.py | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/patchwork/templates/patchwork/patch.html b/patchwork/templates/patchwork/patch.html index f379317..d73377f 100644 --- a/patchwork/templates/patchwork/patch.html +++ b/patchwork/templates/patchwork/patch.html @@ -43,7 +43,7 @@ function toggle_headers(link_id, headers_id) - + diff --git a/patchwork/templatetags/patch.py b/patchwork/templatetags/patch.py index 90519e6..c65bd5e 100644 --- a/patchwork/templatetags/patch.py +++ b/patchwork/templatetags/patch.py @@ -22,6 +22,7 @@ from __future__ import absolute_import from django import template from django.utils.safestring import mark_safe +from django.template.defaultfilters import stringfilter from patchwork.models import Check @@ -59,3 +60,9 @@ def patch_checks(patch): @register.filter(name='state_class') def state_class(state): return '-'.join(state.split()) + + +@register.filter +@stringfilter +def msgid(value): + return mark_safe(value.strip('<>'))
Message ID{{ patch.msgid }}{{ patch.msgid|msgid }}
State