Skip to content

Commit

Permalink
Change the code format
Browse files Browse the repository at this point in the history
  • Loading branch information
jerryshao committed Feb 27, 2015
1 parent ff5195d commit a239776
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -183,10 +183,9 @@ private[spark] class MasterPage(parent: MasterWebUI) extends WebUIPage("") {

private def appRow(app: ApplicationInfo, active: Boolean): Seq[Node] = {
val killLink = if (parent.killEnabled && app.state == ApplicationState.RUNNING) {
val killLinkUri = "app/kill?id=%s&terminate=true"
.format(app.id)
val confirm = "return window.confirm('Are you sure you want to kill application %s ?');"
.format(app.id)
val killLinkUri = s"app/kill?id=${app.id}&terminate=true"
val confirm = "return window.confirm(" +
s"'Are you sure you want to kill application ${app.id} ?');"
<span class="kill-link">
(<a href={killLinkUri} onclick={confirm}>kill</a>)
</span>
Expand Down

0 comments on commit a239776

Please sign in to comment.