From patchwork Fri Oct 26 22:51:44 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simo Sorce X-Patchwork-Id: 194575 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from ozlabs.org (localhost [IPv6:::1]) by ozlabs.org (Postfix) with ESMTP id 79C112C00DA for ; Sat, 27 Oct 2012 09:51:59 +1100 (EST) Received: from mail.samba.org (fn.samba.org [216.83.154.106]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id DD0EC2C030C for ; Sat, 27 Oct 2012 09:51:56 +1100 (EST) Received: from pico.ipa.ssimo.org (localhost [127.0.0.1]) by mail.samba.org (Postfix) with ESMTP id 0A1C4AD4AB for ; Fri, 26 Oct 2012 16:51:45 -0600 (MDT) From: Simo Sorce To: patchwork@lists.ozlabs.org Subject: [PATCH 3/3] Add web scm link to the list and patch view Date: Fri, 26 Oct 2012 18:51:44 -0400 Message-Id: <1351291904-16251-4-git-send-email-idra@samba.org> X-Mailer: git-send-email 1.7.11.7 In-Reply-To: <1351291904-16251-1-git-send-email-idra@samba.org> References: <1351291904-16251-1-git-send-email-idra@samba.org> X-BeenThere: patchwork@lists.ozlabs.org X-Mailman-Version: 2.1.15 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" This makes it easier to go to the code directly from patchwork in case you need more context when looking at patches. Signed-off-by: Simo Sorce --- templates/base.html | 4 ++++ templates/patchwork/patch.html | 3 +++ 2 files changed, 7 insertions(+) diff --git a/templates/base.html b/templates/base.html index 787433f15e13d8ac2960756fee1a9f820516acb5..a15c8274faa254f3de40a9dc58d9d135e9023439 100644 --- a/templates/base.html +++ b/templates/base.html @@ -47,6 +47,10 @@ : patches + {% if project.webscm %} + : + tree + {% endif %} : project info diff --git a/templates/patchwork/patch.html b/templates/patchwork/patch.html index 25c9962838dff6c34cfd313f43ba1c455fdd7c51..131cafae3e037ef8f16a7fd62ccd64623b6e9001 100644 --- a/templates/patchwork/patch.html +++ b/templates/patchwork/patch.html @@ -196,5 +196,8 @@ function toggle_headers(link_id, headers_id) {% endif %} +{% if project.webscm %} +Source Tree +{% endif %} {% endblock %}