From patchwork Sat Nov 8 19:08:33 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Damien Lespiau X-Patchwork-Id: 408435 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 EF7F9140082 for ; Sun, 9 Nov 2014 06:10:35 +1100 (AEDT) Received: from ozlabs.org (ozlabs.org [103.22.144.67]) by lists.ozlabs.org (Postfix) with ESMTP id D82D01A0057 for ; Sun, 9 Nov 2014 06:10:35 +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 68C971A07C2 for ; Sun, 9 Nov 2014 06:09:26 +1100 (AEDT) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga101.fm.intel.com with ESMTP; 08 Nov 2014 11:09:26 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.07,341,1413270000"; d="scan'208";a="628923819" 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:24 -0800 From: Damien Lespiau To: patchwork@lists.ozlabs.org Subject: [PATCH 15/46] html: Turn the navbar into a breadcrumb bar Date: Sat, 8 Nov 2014 19:08:33 +0000 Message-Id: <1415473744-31531-16-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 So we can have a somewhat of a hierarchical progression: All projects -> $project patches -> patch name That should also help when we add series, we'll be able to just add the series in there. By default, we have: All projects -> $project patches both being links, so we can return to the list of patches from any page where the project is defined. The '$project patches' link becomes insensitive in the list page. Finally the patch page adds the patch at the end. Signed-off-by: Damien Lespiau Signed-off-by: Belén Barros Peña --- templates/base.html | 15 ++++++--------- templates/patchwork/list.html | 1 + templates/patchwork/patch.html | 7 ++++++- 3 files changed, 13 insertions(+), 10 deletions(-) diff --git a/templates/base.html b/templates/base.html index 80e07dc..5515ece 100644 --- a/templates/base.html +++ b/templates/base.html @@ -66,15 +66,12 @@ {% if project %} diff --git a/templates/patchwork/list.html b/templates/patchwork/list.html index 8054063..0f3961b 100644 --- a/templates/patchwork/list.html +++ b/templates/patchwork/list.html @@ -4,6 +4,7 @@ {% block title %}{{project.name}}{% endblock %} {% block heading %}{{project.name}}{% endblock %} +{% block breadcrumb %}{{ project.linkname }} patches{% endblock %} {% block body %} diff --git a/templates/patchwork/patch.html b/templates/patchwork/patch.html index c04e32b..b2096aa 100644 --- a/templates/patchwork/patch.html +++ b/templates/patchwork/patch.html @@ -5,7 +5,12 @@ {% load patch %} {% block title %}{{patch.name}}{% endblock %} -{% block heading %}{{patch.name}}{%endblock%} +{% block breadcrumb %} +{{ project.linkname }} patches + → + {{ patch.name }} +{% endblock %} {% block body %}