Skip to content

Commit de9d7d2

Browse files
uncleGenAndrew Or
authored andcommitted
[SPARK-4920][UI]:current spark version in UI is not striking.
It is not convenient to see the Spark version. We can keep the same style with Spark website. ![spark_version](https://cloud.githubusercontent.com/assets/7402327/5527025/1c8c721c-8a35-11e4-8d6a-2734f3c6bdf8.jpg) Author: genmao.ygm <[email protected]> Closes #3763 from uncleGen/master-clean-141222 and squashes the following commits: 0dcb9a9 [genmao.ygm] [SPARK-4920][UI]:current spark version in UI is not striking.
1 parent a61aa66 commit de9d7d2

File tree

2 files changed

+16
-13
lines changed

2 files changed

+16
-13
lines changed

core/src/main/resources/org/apache/spark/ui/static/webui.css

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,16 @@ span.additional-metric-title {
169169
display: inline-block;
170170
}
171171

172+
.version {
173+
line-height: 30px;
174+
vertical-align: bottom;
175+
font-size: 12px;
176+
padding: 0;
177+
margin: 0;
178+
font-weight: bold;
179+
color: #777;
180+
}
181+
172182
/* Hide all additional metrics by default. This is done here rather than using JavaScript to
173183
* avoid slow page loads for stage pages with large numbers (e.g., thousands) of tasks. */
174184
.scheduler_delay, .deserialization_time, .serialization_time, .getting_result_time {

core/src/main/scala/org/apache/spark/ui/UIUtils.scala

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -194,9 +194,12 @@ private[spark] object UIUtils extends Logging {
194194
<body>
195195
<div class="navbar navbar-static-top">
196196
<div class="navbar-inner">
197-
<a href={prependBaseUri("/")} class="brand">
198-
<img src={prependBaseUri("/static/spark-logo-77x50px-hd.png")} />
199-
</a>
197+
<div class="brand">
198+
<a href={prependBaseUri("/")} class="brand">
199+
<img src={prependBaseUri("/static/spark-logo-77x50px-hd.png")} />
200+
<span class="version">{org.apache.spark.SPARK_VERSION}</span>
201+
</a>
202+
</div>
200203
<ul class="nav">{header}</ul>
201204
<p class="navbar-text pull-right">
202205
<strong title={appName}>{shortAppName}</strong> application UI
@@ -214,11 +217,6 @@ private[spark] object UIUtils extends Logging {
214217
</div>
215218
{content}
216219
</div>
217-
<div id="footer">
218-
<div class="container-fluid">
219-
<p class="muted credit">Spark {org.apache.spark.SPARK_VERSION}</p>
220-
</div>
221-
</div>
222220
</body>
223221
</html>
224222
}
@@ -245,11 +243,6 @@ private[spark] object UIUtils extends Logging {
245243
</div>
246244
{content}
247245
</div>
248-
<div id="footer">
249-
<div class="container-fluid">
250-
<p class="muted credit">Spark {org.apache.spark.SPARK_VERSION}</p>
251-
</div>
252-
</div>
253246
</body>
254247
</html>
255248
}

0 commit comments

Comments
 (0)