Github user tgravescs commented on a diff in the pull request:

    https://github.com/apache/spark/pull/21688#discussion_r224217796
  
    --- Diff: core/src/main/resources/org/apache/spark/ui/static/utils.js ---
    @@ -74,3 +74,99 @@ function getTimeZone() {
         return new Date().toString().match(/\((.*)\)/)[1];
       }
     }
    +
    +function formatLogsCells(execLogs, type) {
    +  if (type !== 'display') return Object.keys(execLogs);
    +  if (!execLogs) return;
    +  var result = '';
    +  $.each(execLogs, function (logName, logUrl) {
    +    result += '<div><a href=' + logUrl + '>' + logName + '</a></div>'
    +  });
    +  return result;
    +}
    +
    +function getStandAloneAppId(cb) {
    +  var words = document.baseURI.split('/');
    +  var ind = words.indexOf("proxy");
    +  if (ind > 0) {
    +    var appId = words[ind + 1];
    +    cb(appId);
    +    return;
    +  }
    +  ind = words.indexOf("history");
    +  if (ind > 0) {
    +    var appId = words[ind + 1];
    +    cb(appId);
    +    return;
    +  }
    +  //Looks like Web UI is running in standalone mode
    --- End diff --
    
    add a space after //


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to