Github user pwendell commented on a diff in the pull request:
https://github.com/apache/spark/pull/290#discussion_r11518109
--- Diff: core/src/main/scala/org/apache/spark/ui/UIUtils.scala ---
@@ -129,21 +220,36 @@ private[spark] object UIUtils {
/** Returns an HTML table constructed by generating a row for each
object in a sequence. */
def listingTable[T](
headers: Seq[String],
- makeRow: T => Seq[Node],
- rows: Seq[T],
+ generateDataRow: T => Seq[Node],
+ data: Seq[T],
fixedWidth: Boolean = false): Seq[Node] = {
- val colWidth = 100.toDouble / headers.size
- val colWidthAttr = if (fixedWidth) colWidth + "%" else ""
var tableClass = "table table-bordered table-striped table-condensed
sortable"
if (fixedWidth) {
tableClass += " table-fixed"
}
-
+ val colWidth = 100.toDouble / headers.size
+ val colWidthAttr =if (fixedWidth) colWidth + "%" else ""
--- End diff --
`= if`
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---