Fix contribution sort by issue tag bug
This commit is contained in:
parent
17cdd7067f
commit
f0b5d9385b
2 changed files with 17 additions and 12 deletions
|
|
@ -36,44 +36,44 @@
|
|||
white-space: nowrap;
|
||||
border: 1px solid transparent;
|
||||
}
|
||||
.wontfix {
|
||||
.tag-wontfix {
|
||||
background-color: #e4e669;
|
||||
color: #ffffff;
|
||||
border-color: #000;
|
||||
}
|
||||
.question {
|
||||
.tag-question {
|
||||
background-color: #cc317c;
|
||||
color: #fff;
|
||||
}
|
||||
.invalid {
|
||||
.tag-invalid {
|
||||
background-color: #e4e669;
|
||||
color: #000;
|
||||
}
|
||||
.help-wanted {
|
||||
.tag-help-wanted {
|
||||
background-color: #008672;
|
||||
color: #fff;
|
||||
}
|
||||
.hacktoberfest {
|
||||
.tag-hacktoberfest {
|
||||
background-color: #f2b36f;
|
||||
color: #000;
|
||||
}
|
||||
.good-first-issue {
|
||||
.tag-good-first-issue {
|
||||
background-color: #7057ff;
|
||||
color: #fff;
|
||||
}
|
||||
.enhancement {
|
||||
.tag-enhancement {
|
||||
background-color: #a2eeef;
|
||||
color: #000;
|
||||
}
|
||||
.duplicate {
|
||||
.tag-duplicate {
|
||||
background-color: #cfd3d7;
|
||||
color: #000;
|
||||
}
|
||||
.documentation {
|
||||
.tag-documentation {
|
||||
background-color: #0075ca;
|
||||
color: #fff;
|
||||
}
|
||||
.bug {
|
||||
.tag-bug {
|
||||
background-color: #d73a4a;
|
||||
color: #fff;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -32,10 +32,15 @@ permalink: /contributing/open-issues
|
|||
{{library[0]}}
|
||||
<ul class="issues-list">
|
||||
{% for issue in library[1] %}
|
||||
<li><a href="{{ issue.url }}">{{ issue.title }}</a>
|
||||
{% capture classes %}
|
||||
{% for label in issue.labels %}
|
||||
{{ label | downcase | replace: ' ', '-' }}
|
||||
{% endfor %}
|
||||
{% endcapture %}
|
||||
<li class="{{ classes | strip }}"><a href="{{ issue.url }}">{{ issue.title }}</a>
|
||||
{% for label in issue.labels %}
|
||||
{% if label != 'None' %}
|
||||
<span class="issue-label {{ label | downcase | replace: ' ', '-' }}">{{label}}</span>
|
||||
<span class="issue-label tag-{{ label | downcase | replace: ' ', '-' }}">{{label}}</span>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</li>
|
||||
|
|
|
|||
Loading…
Reference in a new issue