From patchwork Sat Nov 8 19:08:53 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Damien Lespiau X-Patchwork-Id: 408454 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 35F6A140082 for ; Sun, 9 Nov 2014 06:12:07 +1100 (AEDT) Received: from ozlabs.org (ozlabs.org [103.22.144.67]) by lists.ozlabs.org (Postfix) with ESMTP id 22A7E1A27AD for ; Sun, 9 Nov 2014 06:12:07 +1100 (AEDT) X-Original-To: patchwork@lists.ozlabs.org Delivered-To: patchwork@lists.ozlabs.org Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by lists.ozlabs.org (Postfix) with ESMTP id 6F2A51A175A for ; Sun, 9 Nov 2014 06:09:48 +1100 (AEDT) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga101.fm.intel.com with ESMTP; 08 Nov 2014 11:09:48 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.07,341,1413270000"; d="scan'208";a="628923911" Received: from plane-mobl1.ger.corp.intel.com (HELO strange.ger.corp.intel.com) ([10.252.3.12]) by fmsmga002.fm.intel.com with ESMTP; 08 Nov 2014 11:09:46 -0800 From: Damien Lespiau To: patchwork@lists.ozlabs.org Subject: [PATCH 35/46] paginator: Redesign the paginator Date: Sat, 8 Nov 2014 19:08:53 +0000 Message-Id: <1415473744-31531-36-git-send-email-damien.lespiau@intel.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1415473744-31531-1-git-send-email-damien.lespiau@intel.com> References: <1415473744-31531-1-git-send-email-damien.lespiau@intel.com> MIME-Version: 1.0 Cc: =?UTF-8?q?Bel=C3=A9n=20Barros=20Pe=C3=B1a?= X-BeenThere: patchwork@lists.ozlabs.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Patchwork development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: patchwork-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Patchwork" From: Belén Barros Peña A few things: - Use the … glyph - Remove the box around the page numbers - Slight restyling Signed-off-by: Belén Barros Peña Signed-off-by: Damien Lespiau --- htdocs/css/style.css | 36 +++++++++++------------------------- templates/patchwork/pagination.html | 2 +- templates/patchwork/patch-list.html | 4 ++-- 3 files changed, 14 insertions(+), 28 deletions(-) diff --git a/htdocs/css/style.css b/htdocs/css/style.css index 3d4bebd..6bc8ca3 100644 --- a/htdocs/css/style.css +++ b/htdocs/css/style.css @@ -160,24 +160,24 @@ input#reorder-change { } /* list pagination */ -.paginator { padding-bottom: 1em; padding-top: 1em; font-size: 80%; } +.paginator { + text-align: right; + margin: 10px 0; + clear: both; + margin-top: 20px; +} .paginator .prev-na, .paginator .next-na { padding:.3em; font-weight: normal; - border: 0.1em solid #c0c0c0; - background-color: #f9f9f9; color: #a0a0a0; } .paginator .prev a, .paginator .prev a:visited, .paginator .next a, .paginator .next a:visited { - border: 0.1em solid #b0b0d0; - background-color: #eeeeee; - color: #786fb4; padding: .3em; - font-weight: bold; + font-weight: normal; } .paginator .prev, .paginator .prev-na { margin-right:.5em; } @@ -185,27 +185,13 @@ input#reorder-change { .paginator .page a, .paginator .page a:visited, .paginator .curr { padding: .25em; - font-weight: bold; - border: 1px solid #b0b0d0; - background-color: #eeeeee; + font-weight: normal; margin: 0em .25em; - color: #786fb4; } - .paginator .curr { - background-color: #b0b0d0; - color:#fff; - border:1px solid #c0c0ff; - font-weight:bold; -} - -.paginator .page a:hover, -.paginator .curr a:hover, -.paginator .prev a:hover, -.paginator .next a:hover { - color: #ffffff; - background-color: #c0c0ff; - border:1px solid #234f32; + background-color: #2E2E70; + color: #fff; + font-weight:normal; } /* project list view */ diff --git a/templates/patchwork/pagination.html b/templates/patchwork/pagination.html index 3e95126..7938dd8 100644 --- a/templates/patchwork/pagination.html +++ b/templates/patchwork/pagination.html @@ -27,7 +27,7 @@ {% endfor %} {% if page.paginator.leading_set %} - ... + … {% for p in page.paginator.leading_set %} {{ p }} {% endfor %} diff --git a/templates/patchwork/patch-list.html b/templates/patchwork/patch-list.html index e17793c..084b5c6 100644 --- a/templates/patchwork/patch-list.html +++ b/templates/patchwork/patch-list.html @@ -1,10 +1,10 @@ {% load person %} {% load listurl %} -{% include "patchwork/pagination.html" %} - {% include "patchwork/filters.html" %} +{% include "patchwork/pagination.html" %} + {% if order.editable %}