diff options
author | drebs <drebs@riseup.net> | 2017-10-17 20:14:46 -0200 |
---|---|---|
committer | drebs <drebs@riseup.net> | 2017-10-17 20:14:46 -0200 |
commit | 1c5a8c3daf841912e636e99e9626835613731f4c (patch) | |
tree | ee7b308b960bdbb0a79f80757fb3c379303792b3 /widgets/benchmarks | |
parent | 9af4268d9970a60625aae3b494ea2443f0d1d450 (diff) |
Diffstat (limited to 'widgets/benchmarks')
-rw-r--r-- | widgets/benchmarks/benchmarks.coffee | 6 | ||||
-rw-r--r-- | widgets/benchmarks/benchmarks.html | 2 |
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> |