From patchwork Mon Feb 25 07:14:11 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Senthil Kumaran X-Patchwork-Id: 15058 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 1F42E23E2E for ; Mon, 25 Feb 2013 07:14:15 +0000 (UTC) Received: from mail-ve0-f177.google.com (mail-ve0-f177.google.com [209.85.128.177]) by fiordland.canonical.com (Postfix) with ESMTP id BEE25A1883C for ; Mon, 25 Feb 2013 07:14:14 +0000 (UTC) Received: by mail-ve0-f177.google.com with SMTP id m1so1926557ves.8 for ; Sun, 24 Feb 2013 23:14:14 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:x-forwarded-to:x-forwarded-for:delivered-to:x-received :received-spf:content-type:mime-version:x-launchpad-project :x-launchpad-branch:x-launchpad-message-rationale :x-launchpad-branch-revision-number:x-launchpad-notification-type:to :from:subject:message-id:date:reply-to:sender:errors-to:precedence :x-generated-by:x-launchpad-hash:x-gm-message-state; bh=keESGaD2e402WnMsf4KnsQFIw+PBFKoSr2LU6wyZiwo=; b=G1s/Uulvhw/Tj8SMz/F7Cx8xYXqgKPirZ0rw2Df144aErRdIv1b0E2/zC8FNMBGL/Q wCkv8HuZovuvGP8TKmUtWsR7L6pMsQv70tz3w/N/nUuzXmKgAVn4xt7iRM4Do0agH3L7 Ibq0nWlJfp4nrQhkzpeW0nGsckEqwZ3KfR1//rJJa4j8kULgXTdL7El0kOnjaRdoSbDm AsoWGNk+DxH+G7eibRbTfq5VJEvc6Cp3Z5vsRNdoCKbqxemr7Dn9Xin66NxDNsAjRey4 wLFc7B1djcmSUzlpRPJM93R1AQ4kQrgki81eWfd3A/iLKVcXVTrDSx/YioAuyw4jDSXp PQ+A== X-Received: by 10.52.93.235 with SMTP id cx11mr8084746vdb.51.1361776454271; Sun, 24 Feb 2013 23:14:14 -0800 (PST) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.58.145.101 with SMTP id st5csp44949veb; Sun, 24 Feb 2013 23:14:13 -0800 (PST) X-Received: by 10.180.105.67 with SMTP id gk3mr9931284wib.31.1361776452746; Sun, 24 Feb 2013 23:14:12 -0800 (PST) Received: from indium.canonical.com (indium.canonical.com. [91.189.90.7]) by mx.google.com with ESMTPS id es4si2972536wib.126.2013.02.24.23.14.11 (version=TLSv1 cipher=RC4-SHA bits=128/128); Sun, 24 Feb 2013 23:14:12 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of bounces@canonical.com designates 91.189.90.7 as permitted sender) client-ip=91.189.90.7; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of bounces@canonical.com designates 91.189.90.7 as permitted sender) smtp.mail=bounces@canonical.com Received: from ackee.canonical.com ([91.189.89.26]) by indium.canonical.com with esmtp (Exim 4.71 #1 (Debian)) id 1U9sGJ-0003AR-EP for ; Mon, 25 Feb 2013 07:14:11 +0000 Received: from ackee.canonical.com (localhost [127.0.0.1]) by ackee.canonical.com (Postfix) with ESMTP id 55417E0409 for ; Mon, 25 Feb 2013 07:14:11 +0000 (UTC) MIME-Version: 1.0 X-Launchpad-Project: lava-dashboard X-Launchpad-Branch: ~linaro-validation/lava-dashboard/trunk X-Launchpad-Message-Rationale: Subscriber X-Launchpad-Branch-Revision-Number: 397 X-Launchpad-Notification-Type: branch-revision To: Linaro Patch Tracker From: noreply@launchpad.net Subject: [Branch ~linaro-validation/lava-dashboard/trunk] Rev 397: Display the logged in user for downloading bundle if it is a private stream. Message-Id: <20130225071411.20216.98703.launchpad@ackee.canonical.com> Date: Mon, 25 Feb 2013 07:14:11 -0000 Reply-To: noreply@launchpad.net Sender: bounces@canonical.com Errors-To: bounces@canonical.com Precedence: bulk X-Generated-By: Launchpad (canonical.com); Revision="16506"; Instance="launchpad-lazr.conf" X-Launchpad-Hash: 1b4517718aed700428489123db473a00f230684c X-Gm-Message-State: ALoCoQkKiL822bEbhq5IYsjgAyVepTQWJCjIaHnEVUjh8tv++DsJcZe5Jos3n1BER4tD9/gCOBv5 ------------------------------------------------------------ revno: 397 committer: Senthil Kumaran branch nick: trunk timestamp: Mon 2013-02-25 10:22:22 +0530 message: Display the logged in user for downloading bundle if it is a private stream. modified: dashboard_app/templates/dashboard_app/bundle_detail.html --- lp:lava-dashboard https://code.launchpad.net/~linaro-validation/lava-dashboard/trunk You are subscribed to branch lp:lava-dashboard. To unsubscribe from this branch go to https://code.launchpad.net/~linaro-validation/lava-dashboard/trunk/+edit-subscription === modified file 'dashboard_app/templates/dashboard_app/bundle_detail.html' --- dashboard_app/templates/dashboard_app/bundle_detail.html 2013-02-20 07:14:16 +0000 +++ dashboard_app/templates/dashboard_app/bundle_detail.html 2013-02-25 04:52:22 +0000 @@ -58,8 +58,8 @@

Tips

You can download this bundle with the following command:

-{% if bundle.uploaded_by %} - lava-dashboard-tool get --dashboard-url=http://{{bundle.uploaded_by}}@{{site.domain}}{% url lava.api_handler %} {{bundle.content_sha1}} +{% if bundle.private %} + lava-dashboard-tool get --dashboard-url=http://{{request.user.username}}@{{site.domain}}{% url lava.api_handler %} {{bundle.content_sha1}} {% else %} lava-dashboard-tool get --dashboard-url=http://{{site.domain}}{% url lava.api_handler %} {{bundle.content_sha1}} {% endif %}