~joetalbott/qa-dashboard/xunit_parser

« back to all changes in this revision

Viewing changes to common/templatetags/dashboard_extras.py

  • Committer: Tarmac
  • Author(s): Paul Larson
  • Date: 2013-09-19 14:57:49 UTC
  • mfrom: (606.1.1 trunk)
  • Revision ID: tarmac-20130919145749-qt7gq7bedjp0z84d
[r=Chris Johnston] Only turn green if the pass rate is 100%  from Paul Larson

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
 
39
39
def pass_rate_color(value):
40
40
    """Colouring for pass rates based on css classes"""
41
 
    if value > 0.97:
 
41
    if value == 1.0:
42
42
        return "green"
43
43
    elif value > 0.6:
44
44
        return "yellow"