File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
core/src/main/scala/org/apache/spark/ui Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 1717
1818package org .apache .spark .ui
1919
20+ import scala .xml .Node
21+
2022import java .text .SimpleDateFormat
2123import java .util .{Locale , Date }
2224
23- import scala .xml .Node
2425import org .apache .spark .Logging
2526
2627/** Utility functions for generating XML pages with spark content. */
@@ -169,6 +170,7 @@ private[spark] object UIUtils extends Logging {
169170 refreshInterval : Option [Int ] = None ): Seq [Node ] = {
170171
171172 val appName = activeTab.appName
173+ val shortAppName = if (appName.length < 36 ) appName else appName.take(32 ) + " ..."
172174 val header = activeTab.headerTabs.map { tab =>
173175 <li class ={if (tab == activeTab) " active" else " " }>
174176 <a href ={prependBaseUri(activeTab.basePath, " /" + tab.prefix)}>{tab.name}</a >
@@ -187,7 +189,9 @@ private[spark] object UIUtils extends Logging {
187189 <img src ={prependBaseUri(" /static/spark-logo-77x50px-hd.png" )} />
188190 </a >
189191 <ul class =" nav" >{header}</ul >
190- <p class =" navbar-text pull-right" ><strong >{appName}</strong > application UI </p >
192+ <p class =" navbar-text pull-right" >
193+ <strong title ={appName}>{shortAppName}</strong > application UI
194+ </p >
191195 </div >
192196 </div >
193197 <div class =" container-fluid" >
You can’t perform that action at this time.
0 commit comments