summaryrefslogtreecommitdiff
path: root/widgets/benchmarks
diff options
context:
space:
mode:
authordrebs <drebs@riseup.net>2017-10-17 20:14:46 -0200
committerdrebs <drebs@riseup.net>2017-10-17 20:14:46 -0200
commit1c5a8c3daf841912e636e99e9626835613731f4c (patch)
treeee7b308b960bdbb0a79f80757fb3c379303792b3 /widgets/benchmarks
parent9af4268d9970a60625aae3b494ea2443f0d1d450 (diff)
Add colors to benchmarks status.HEADmaster
Diffstat (limited to 'widgets/benchmarks')
-rw-r--r--widgets/benchmarks/benchmarks.coffee6
-rw-r--r--widgets/benchmarks/benchmarks.html2
2 files changed, 7 insertions, 1 deletions
diff --git a/widgets/benchmarks/benchmarks.coffee b/widgets/benchmarks/benchmarks.coffee
index 1d47b7c..2e1a6ba 100644
--- a/widgets/benchmarks/benchmarks.coffee
+++ b/widgets/benchmarks/benchmarks.coffee
@@ -13,3 +13,9 @@ class Dashing.Benchmarks extends Dashing.Widget
@accessor 'hasGoodOutliers', ->
@get('good') > 0
+
+ @accessor 'isBenchmarked', ->
+ !/NOT/.test(@get('is-benchmarked-status'))
+
+ @accessor 'isNotBenchmarked', ->
+ /NOT/.test(@get('is-benchmarked-status'))
diff --git a/widgets/benchmarks/benchmarks.html b/widgets/benchmarks/benchmarks.html
index d7dda1c..d37726f 100644
--- a/widgets/benchmarks/benchmarks.html
+++ b/widgets/benchmarks/benchmarks.html
@@ -6,7 +6,7 @@
<p>
<a href="https://benchmarks.leap.se">
- <span data-bind="is-benchmarked-status"></span>
+ <span data-bind="is-benchmarked-status" data-addclass-good="isBenchmarked" data-addclass-bad="isNotBenchmarked"></span>
</a>
</p>