Add specialist rating

This commit is contained in:
cuom1999 2021-12-09 12:55:58 -06:00
parent c4fd928faf
commit b7e2e67bf9
3 changed files with 21 additions and 8 deletions

View file

@ -190,8 +190,8 @@ def rate_contest(contest):
RATING_LEVELS = ['Newbie', 'Amateur', 'Expert', 'Candidate Master', 'Master', 'Grandmaster', 'Target']
RATING_VALUES = [1000, 1300, 1600, 1900, 2400, 3000]
RATING_CLASS = ['rate-newbie', 'rate-amateur', 'rate-expert', 'rate-candidate-master',
RATING_VALUES = [1000, 1400, 1700, 1900, 2100, 2400, 3000]
RATING_CLASS = ['rate-newbie', 'rate-amateur', 'rate-specialist', 'rate-expert', 'rate-candidate-master',
'rate-master', 'rate-grandmaster', 'rate-target']

View file

@ -32,6 +32,10 @@ svg.rate-box {
@include rate-svg-color(#00a900);
}
&.rate-specialist {
@include rate-svg-color(#03a89e);
}
&.rate-expert {
@include rate-svg-color(#66f);
}
@ -73,6 +77,10 @@ svg.rate-box {
color: #00a900;
}
.rate-specialist, .rate-specialist a {
color: darkcyan;
}
.rate-expert, .rate-expert a {
color: blue;
}

View file

@ -467,21 +467,26 @@
},
{
begin: 1000,
end: 1300,
end: 1400,
color: 'rgb(0, 169, 0, 0.4)'
},
{
begin: 1300,
end: 1600,
begin: 1400,
end: 1700,
color: 'rgb(3, 168, 158, 0.4)'
},
{
begin: 1700,
end: 1900,
color: 'rgb(0, 0, 255, 0.4)'
},
{
begin: 1600,
end: 1900,
begin: 1900,
end: 2100,
color: 'rgb(128, 0, 128, 0.37)'
},
{
begin: 1900,
begin: 2100,
end: 2400,
color: 'rgb(255, 177, 0, 0.4)'
},