diff mbox

[Branch,~linaro-validation/lava-dashboard/trunk] Rev 396: Show bundle download method with or without username based on the bundle access.

Message ID 20130220071711.30553.18348.launchpad@ackee.canonical.com
State Accepted
Headers show

Commit Message

Senthil Kumaran Feb. 20, 2013, 7:17 a.m. UTC
------------------------------------------------------------
revno: 396
committer: Senthil Kumaran <senthil.kumaran@linaro.org>
branch nick: trunk
timestamp: Wed 2013-02-20 12:44:16 +0530
message:
  Show bundle download method with or without username based on the bundle access.
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	2012-08-27 00:31:59 +0000
+++ dashboard_app/templates/dashboard_app/bundle_detail.html	2013-02-20 07:14:16 +0000
@@ -58,7 +58,11 @@ 
 <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>
+{% else %}
   <code>lava-dashboard-tool get --dashboard-url=http://{{site.domain}}{% url lava.api_handler %} {{bundle.content_sha1}}</code>
+{% endif %}
 </div>
 {% endblock %}