From patchwork Mon Aug 24 18:23:14 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Damien Lespiau X-Patchwork-Id: 510237 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 D966814032C for ; Tue, 25 Aug 2015 04:28:07 +1000 (AEST) Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id BB48E1A1D99 for ; Tue, 25 Aug 2015 04:28:07 +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 A34091A1D98 for ; Tue, 25 Aug 2015 04:24:19 +1000 (AEST) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga102.fm.intel.com with ESMTP; 24 Aug 2015 11:24:20 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.15,739,1432623600"; d="scan'208";a="789969311" 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:18 -0700 From: Damien Lespiau To: patchwork@lists.ozlabs.org Subject: [PATCH 25/51] patch-list: Re-design the main list of patches with Bootsrap Date: Mon, 24 Aug 2015 19:23:14 +0100 Message-Id: <1440440620-25937-26-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> MIME-Version: 1.0 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: , Cc: =?UTF-8?q?Bel=C3=A9n=20Barros=20Pe=C3=B1a?= Errors-To: patchwork-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Patchwork" From: Belén Barros Peña A bit more spacing everywhere. Also opted for the highlight on hover instead of the alternating row background color. v2: Squash the patch fixing the unit tests (Jeremy Kerr) Signed-off-by: Belén Barros Pena Signed-off-by: Damien Lespiau Acked-by: Stephen Finucane --- htdocs/css/style.css | 43 --------------------------- patchwork/templates/patchwork/patch-list.html | 4 +-- patchwork/tests/test_list.py | 2 +- 3 files changed, 3 insertions(+), 46 deletions(-) diff --git a/htdocs/css/style.css b/htdocs/css/style.css index e09821e..1ec7400 100644 --- a/htdocs/css/style.css +++ b/htdocs/css/style.css @@ -106,34 +106,6 @@ dl dt { color: green; } -/* patch lists */ -table.patchlist { - width: 98%; - border: thin solid black; - padding: 0em 1em; -} - -table.patchlist th { - background: #eeeeee; - border-bottom: thin solid black; - text-align: left; - padding-left: 6px; -} - -table.patchlist th img { - vertical-align: bottom; -} - -table.patchlist td { - padding: 2px 6px 2px 6px; - margin: 0px; - margin-top: 10px; -} - -table.patchlist td img { - vertical-align: bottom; -} - .filters { border: 1px solid #cccccc; border-radius: 4px; @@ -149,21 +121,6 @@ a.filter-action:hover { } -table.patchlist td.patchlistreorder { - background: #c0c0ff; - border-top: thin solid gray; - border-bottom: thin solid black; - font-size: smaller; - text-align: right; -} -table.patchlist tr.odd { - background: #ffffff; -} - -table.patchlist tr.even { - background: #e8e8e8; -} - a.colinactive, a.colactive { color: black; text-decoration: none; diff --git a/patchwork/templates/patchwork/patch-list.html b/patchwork/templates/patchwork/patch-list.html index 6d57a66..628696e 100644 --- a/patchwork/templates/patchwork/patch-list.html +++ b/patchwork/templates/patchwork/patch-list.html @@ -39,7 +39,7 @@ {% csrf_token %} - +
{% if user.is_authenticated %} @@ -140,7 +140,7 @@ {% if page.paginator.count %} {% for patch in page.object_list %} - + {% if user.is_authenticated %}
diff --git a/patchwork/tests/test_list.py b/patchwork/tests/test_list.py index c7fbbea..f440e3e 100644 --- a/patchwork/tests/test_list.py +++ b/patchwork/tests/test_list.py @@ -70,7 +70,7 @@ class PatchOrderTest(TestCase): patch.save() def _extract_patch_ids(self, response): - id_re = re.compile('