summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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>