-
Notifications
You must be signed in to change notification settings - Fork 634
/
Copy pathopen_issues.html
56 lines (55 loc) · 1.68 KB
/
open_issues.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
---
layout: contributing
title: Contributing - Open Issues
permalink: /contributing/open-issues
---
<div class="libraries open-issues">
{% comment %}
create labels array by looping through labels of each issue
ensuring unique for select list
{% endcomment %}
{% assign labels = "All" | split: "," %}
{% for library in site.data.libraries.open_issues %}
{% for issue in library[1] %}
{% for label in issue.labels %}
{% assign labels = labels | push: label | uniq %}
{% endfor %}
{% endfor %}
{% endfor %}
<p>
Sort by issue labels
<select>
{% for label in labels %}
{% assign lowerlabel = label | downcase %}
{% assign ddlabels = ddlabels | push: lowerlabel | uniq %}
{% endfor %}
{% for label in ddlabels %}
<option value='{{ label | replace: ' ', '-' }}'>{{ label | capitalize }}</option>
{% endfor %}
<select>
</p>
<h3>Open Issues</h3>
<ul>
{% for library in site.data.libraries.open_issues %}
<li>
{{library[0]}}
<ul class="issues-list">
{% for issue in library[1] %}
{% 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 tag-{{ label | downcase | replace: ' ', '-' }}">{{label}}</span>
{% endif %}
{% endfor %}
</li>
{% endfor %}
</ul>
</li>
{% endfor %}
</ul>
</div>