You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by be...@apache.org on 2012/12/07 01:46:13 UTC

svn commit: r1418149 - in /incubator/mesos/trunk/src/webui/master/static: browse.html controllers.js

Author: benh
Date: Fri Dec  7 00:46:12 2012
New Revision: 1418149

URL: http://svn.apache.org/viewvc?rev=1418149&view=rev
Log:
Fixed webui file download links.

From: Ben Mahler <be...@gmail.com>
Review: https://reviews.apache.org/r/7994

Modified:
    incubator/mesos/trunk/src/webui/master/static/browse.html
    incubator/mesos/trunk/src/webui/master/static/controllers.js

Modified: incubator/mesos/trunk/src/webui/master/static/browse.html
URL: http://svn.apache.org/viewvc/incubator/mesos/trunk/src/webui/master/static/browse.html?rev=1418149&r1=1418148&r2=1418149&view=diff
==============================================================================
--- incubator/mesos/trunk/src/webui/master/static/browse.html (original)
+++ incubator/mesos/trunk/src/webui/master/static/browse.html Fri Dec  7 00:46:12 2012
@@ -69,7 +69,8 @@
             </a>
           </td>
           <td>
-            <a ui-if="file.mode[0] != 'd'" href="/files/download.json?path={{encodeURIComponent(file.path)}}">
+            <a ui-if="file.mode[0] != 'd'"
+               href="http://{{slave_host}}/files/download.json?path={{encodeURIComponent(file.path)}}">
               <button class="btn btn-mini" type="button">download</button>
             </a>
           </td>

Modified: incubator/mesos/trunk/src/webui/master/static/controllers.js
URL: http://svn.apache.org/viewvc/incubator/mesos/trunk/src/webui/master/static/controllers.js?rev=1418149&r1=1418148&r2=1418149&view=diff
==============================================================================
--- incubator/mesos/trunk/src/webui/master/static/controllers.js (original)
+++ incubator/mesos/trunk/src/webui/master/static/controllers.js Fri Dec  7 00:46:12 2012
@@ -574,6 +574,8 @@ function BrowseCtrl($scope, $routeParams
       var host = pid.substring(pid.indexOf('@') + 1);
       var url = 'http://' + host + '/files/browse.json?jsonp=JSON_CALLBACK';
 
+      $scope.slave_host = host;
+
       $scope.pail = function($event, path) {
         pailer(host, path, decodeURIComponent(path));
       }