diff mbox

[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
State Accepted
Headers show

Commit Message

Senthil Kumaran Feb. 25, 2013, 7:14 a.m. UTC
------------------------------------------------------------
revno: 397
committer: Senthil Kumaran <senthil.kumaran@linaro.org>
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
diff mbox

Patch

=== 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 @@ 
 <h3>Tips</h3>
 <p>You can download this bundle with the following command:</p>
 <div class="console">
-{% if bundle.uploaded_by %}
-  <code>lava-dashboard-tool get --dashboard-url=http://{{bundle.uploaded_by}}@{{site.domain}}{% url lava.api_handler %} {{bundle.content_sha1}}</code>
+{% if bundle.private %}
+  <code>lava-dashboard-tool get --dashboard-url=http://{{request.user.username}}@{{site.domain}}{% url lava.api_handler %} {{bundle.content_sha1}}</code>
 {% else %}
   <code>lava-dashboard-tool get --dashboard-url=http://{{site.domain}}{% url lava.api_handler %} {{bundle.content_sha1}}</code>
 {% endif %}