forked from adafruit/circuitpython-org
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathopen_issues.html
More file actions
66 lines (65 loc) · 2.05 KB
/
open_issues.html
File metadata and controls
66 lines (65 loc) · 2.05 KB
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
57
58
59
60
61
62
63
64
65
66
---
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 %}
<div class="issue-controls">
<p>
Filter by issue labels
<select id="label-filter">
{% 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>
<p>
Sort by
<select id="sort-order">
<option value="default">Default</option>
<option value="newest">Newest first</option>
<option value="oldest">Oldest first</option>
</select>
</p>
</div>
<h3>Open Issues</h3>
<ul id="libraries-list">
{% 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 }}" data-days-open="{{ issue.days_open }}"><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>