From patchwork Thu Oct 1 14:12:08 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Damien Lespiau X-Patchwork-Id: 524992 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 304D7140D16 for ; Fri, 2 Oct 2015 00:13:35 +1000 (AEST) Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 0F4671A010A for ; Fri, 2 Oct 2015 00:13:35 +1000 (AEST) X-Original-To: patchwork@lists.ozlabs.org Delivered-To: patchwork@lists.ozlabs.org Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by lists.ozlabs.org (Postfix) with ESMTP id EE28C1A0318 for ; Fri, 2 Oct 2015 00:13:09 +1000 (AEST) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga103.fm.intel.com with ESMTP; 01 Oct 2015 07:13:09 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.17,617,1437462000"; d="scan'208";a="817195199" Received: from unknown (HELO strange.ger.corp.intel.com) ([10.252.16.209]) by orsmga002.jf.intel.com with ESMTP; 01 Oct 2015 07:13:08 -0700 From: Damien Lespiau To: patchwork@lists.ozlabs.org Subject: [PATCH 03/49] list: Replace the 16-arrow* icons by glyphicons Date: Thu, 1 Oct 2015 15:12:08 +0100 Message-Id: <1443708774-26996-4-git-send-email-damien.lespiau@intel.com> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1443708774-26996-1-git-send-email-damien.lespiau@intel.com> References: <1443708774-26996-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" They look more modern. Signed-off-by: Damien Lespiau Acked-by: Stephen Finucane --- htdocs/images/16-arrow-down.png | Bin 354 -> 0 bytes htdocs/images/16-arrow-up.png | Bin 332 -> 0 bytes patchwork/templates/patchwork/patch-list.html | 55 +++++++------------------- patchwork/utils.py | 5 +++ 4 files changed, 20 insertions(+), 40 deletions(-) delete mode 100644 htdocs/images/16-arrow-down.png delete mode 100644 htdocs/images/16-arrow-up.png diff --git a/htdocs/images/16-arrow-down.png b/htdocs/images/16-arrow-down.png deleted file mode 100644 index fa0ff7b3204cde4110c41b9c907896325697401f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 354 zcmV-o0iFJdP)m9?_pRd6f#0H6h zF(XPV2sOl zd_`7?H)@J%ZqDCR`?iG;1qbGk`G6AZ&mIpYzN$J;3zU`$uuAVZvp*nyewi z*I#eI7{tcq3Y=chQ8r@u_VX1OgV;oS0c4Ymlo-RaADb9{{(TP?V`mm*0Eyjsw(mcB zfMRulvZ4UPpMT#N{{8y}#vnFGjGz}lwkycUGcYnTF)%Z6Ft9T7f-#5<5(CMhhXo6! ziEIoUETRmIK&gNKe?i0;*%;Va1c7od@P`4=e~ovZ?5n@` {% ifequal order.name "name" %} Patch {% else %} {% if not order.editable %} @@ -80,14 +75,9 @@ {% ifequal order.name "date" %} Date {% else %} {% if not order.editable %} @@ -101,14 +91,9 @@ {% ifequal order.name "submitter" %} Submitter {% else %} {% if not order.editable %} @@ -122,14 +107,9 @@ {% ifequal order.name "delegate" %} Delegate {% else %} {% if not order.editable %} @@ -143,14 +123,9 @@ {% ifequal order.name "state" %} State {% else %} {% if not order.editable %} diff --git a/patchwork/utils.py b/patchwork/utils.py index 0dfe8dc..d69cb21 100644 --- a/patchwork/utils.py +++ b/patchwork/utils.py @@ -93,6 +93,11 @@ class Order(object): else: return '-' + self.order + def updown(self): + if self.reversed: + return 'up' + return 'down' + def apply(self, qs): q = self.order_map[self.order] if self.reversed: