diff --git a/dashboard/app/build/ui.go b/dashboard/app/build/ui.go index d2d805e8..0536dc0b 100644 --- a/dashboard/app/build/ui.go +++ b/dashboard/app/build/ui.go @@ -175,6 +175,14 @@ func isRace(s string) bool { return strings.Contains(s, "-race-") || strings.HasSuffix(s, "-race") } +func unsupportedOS(os string) bool { + if os == "race" { + return false + } + p, ok := osPriority[os] + return !ok || p > 0 +} + // Priorities for specific operating systems. var osPriority = map[string]int{ "darwin": 0, @@ -239,15 +247,17 @@ var uiTemplate = template.Must( ) var tmplFuncs = template.FuncMap{ + "buildDashboards": buildDashboards, + "builderOS": builderOS, + "builderSpans": builderSpans, "builderSubheading": builderSubheading, "builderTitle": builderTitle, - "builderSpans": builderSpans, - "buildDashboards": buildDashboards, "repoURL": repoURL, "shortDesc": shortDesc, "shortHash": shortHash, "shortUser": shortUser, "tail": tail, + "unsupportedOS": unsupportedOS, } func splitDash(s string) (string, string) { diff --git a/dashboard/app/build/ui.html b/dashboard/app/build/ui.html index 69b56d93..04184732 100644 --- a/dashboard/app/build/ui.html +++ b/dashboard/app/build/ui.html @@ -56,7 +56,7 @@ .dashboards, .paginate { padding: 0.5em; } - .dashboards a, .paginate a { + .dashboards > a, .paginate a { padding: 0.5em; background: #eee; color: blue; @@ -68,6 +68,19 @@ color: #C00; } + +
{{end}} {{range $.Builders | builderSpans}} - | {{.OS}} | +{{.OS}} | {{end}}@@ -112,8 +129,11 @@ | {{end}} {{range $.Builders}} - | {{builderSubheading .}} | +{{builderSubheading .}} | {{end}} ++ | + | {{range $c := $.Commits}} {{range $i, $h := $c.ResultGoHashes}} @@ -127,7 +147,7 @@ | {{shortHash $h}} | {{end}} {{range $.Builders}} -+ |
{{with $c.Result . $h}}
{{if .OK}}
ok
@@ -177,7 +197,7 @@
| {{range $.Builders | builderSpans}} - | {{.OS}} | +{{.OS}} | {{end}}@@ -199,7 +219,7 @@ | {{range $.Builders}} - | {{builderSubheading .}} | +{{builderSubheading .}} | {{end}}@@ -213,7 +233,7 @@ {{shortHash $h}} {{range $.Builders}} - | + | {{with $pkg.Commit.Result . $goHash}} {{if .OK}} ok |
---|