Repository: spark
Updated Branches:
  refs/heads/branch-1.0 1ea9a21f4 -> 5fe18a74f


Make "spark logo" link refer to "/".

This is not an issue with the driver UI, but when you fire
up the history server, there's currently no way to go back to
the app listing page without editing the browser's location
field (since the logo's link points to the root of the
application's own UI - i.e. the "stages" tab).

The change just points the logo link to "/", which is the app
listing for the history server, and the stages tab for the
driver's UI.

Tested with both history server and live driver.

Author: Marcelo Vanzin <[email protected]>

Closes #408 from vanzin/web-ui-root and squashes the following commits:

1b60cb6 [Marcelo Vanzin] Make "spark logo" link refer to "/".
(cherry picked from commit c0273d806ea9b83dd8585039f2a18c2cc795dad2)

Signed-off-by: Patrick Wendell <[email protected]>


Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/5fe18a74
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/5fe18a74
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/5fe18a74

Branch: refs/heads/branch-1.0
Commit: 5fe18a74fd94621116983a898e7f3cec4e6cd4fb
Parents: 1ea9a21
Author: Marcelo Vanzin <[email protected]>
Authored: Wed Apr 16 08:53:01 2014 -0700
Committer: Patrick Wendell <[email protected]>
Committed: Wed Apr 16 08:53:09 2014 -0700

----------------------------------------------------------------------
 core/src/main/scala/org/apache/spark/ui/UIUtils.scala | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/5fe18a74/core/src/main/scala/org/apache/spark/ui/UIUtils.scala
----------------------------------------------------------------------
diff --git a/core/src/main/scala/org/apache/spark/ui/UIUtils.scala 
b/core/src/main/scala/org/apache/spark/ui/UIUtils.scala
index 6a2d652..99770f2 100644
--- a/core/src/main/scala/org/apache/spark/ui/UIUtils.scala
+++ b/core/src/main/scala/org/apache/spark/ui/UIUtils.scala
@@ -158,7 +158,7 @@ private[spark] object UIUtils extends Logging {
       <body>
         <div class="navbar navbar-static-top">
           <div class="navbar-inner">
-            <a href={prependBaseUri(basePath, "/")} class="brand">
+            <a href="/" class="brand">
               <img src={prependBaseUri("/static/spark-logo-77x50px-hd.png")} />
             </a>
             <ul class="nav">{header}</ul>

Reply via email to