|
23 | 23 | }) |
24 | 24 | </script> |
25 | 25 |
|
| 26 | + {{ $setupTasks := slice }} |
| 27 | + {{ $recurringTasks := slice }} |
| 28 | + {{ $mandatoryTasks := slice }} |
| 29 | + {{ $optionalTasks := slice }} |
| 30 | + |
26 | 31 | {{/* you can have multiple repos but probably for sanity let's just stick with one label filter |
27 | 32 | for each repo, grab the issues that match the filter |
28 | 33 | */}} |
29 | 34 | {{ range $repos }} |
30 | | - {{ $setupTasks := slice }} |
31 | | - {{ $recurringTasks := slice }} |
32 | | - {{ $mandatoryTasks := slice }} |
33 | | - {{ $optionalTasks := slice }} |
34 | 35 | {{ $issueBlocks := partial "block/issues-list-as-blocks.html" (dict "backlog" . "backlog_filter" $backlog_filter "path" $currentPath) }} |
35 | | - {{ $repo := . }} |
36 | 36 | {{ range $issueBlocks }} |
37 | 37 | {{ $issue := . }} |
38 | 38 | {{ range .labels.nodes }} |
|
47 | 47 | {{ end }} |
48 | 48 | {{ end }} |
49 | 49 | {{ end }} |
50 | | - {{ if lt 0 ($setupTasks | len) }} |
51 | | - <h2>Start Here</h2> |
52 | | - <p>These tasks should be completed before attempting anything else.</p> |
53 | | - {{range $setupTasks}} |
54 | | - {{ partial "block/backlog-issue.html" (dict |
55 | | - "block" . |
56 | | - "Page" $.Page |
57 | | - "Site" site |
58 | | - "repo" $repo |
59 | | - "sprint" $backlog_filter |
60 | | - "path" $currentPath |
61 | | - ) }} |
62 | | - {{ end }} |
| 50 | + {{ end }} |
| 51 | + {{ if lt 0 ($setupTasks | len) }} |
| 52 | + <h2>Start Here</h2> |
| 53 | + <p>These tasks should be completed before attempting anything else.</p> |
| 54 | + {{range $setupTasks}} |
| 55 | + {{ partial "block/backlog-issue.html" (dict |
| 56 | + "block" . |
| 57 | + "Page" $.Page |
| 58 | + "Site" site |
| 59 | + "sprint" $backlog_filter |
| 60 | + "path" $currentPath |
| 61 | + ) }} |
63 | 62 | {{ end }} |
64 | | - {{ if lt 0 ($recurringTasks | len) }} |
65 | | - <h2>Recurring Tasks</h2> |
66 | | - <p>These tasks need to be completed in every sprint.</p> |
67 | | - {{range $recurringTasks}} |
68 | | - {{ partial "block/backlog-issue.html" (dict |
69 | | - "block" . |
70 | | - "Page" $.Page |
71 | | - "Site" site |
72 | | - "repo" $repo |
73 | | - "sprint" $backlog_filter |
74 | | - "path" $currentPath |
75 | | - ) }} |
76 | | - {{ end }} |
| 63 | + {{ end }} |
| 64 | + {{ if lt 0 ($recurringTasks | len) }} |
| 65 | + <h2>Recurring Tasks</h2> |
| 66 | + <p>These tasks need to be completed in every sprint.</p> |
| 67 | + {{range $recurringTasks}} |
| 68 | + {{ partial "block/backlog-issue.html" (dict |
| 69 | + "block" . |
| 70 | + "Page" $.Page |
| 71 | + "Site" site |
| 72 | + "sprint" $backlog_filter |
| 73 | + "path" $currentPath |
| 74 | + ) }} |
77 | 75 | {{ end }} |
78 | | - {{ if lt 0 ($mandatoryTasks | len) }} |
79 | | - <h2>Mandatory Tasks</h2> |
80 | | - <p>These tasks will help consolidate your learning for this sprint. You should complete as many of these as possible before class on Saturday.</p> |
81 | | - {{range $mandatoryTasks}} |
82 | | - {{ partial "block/backlog-issue.html" (dict |
83 | | - "block" . |
84 | | - "Page" $.Page |
85 | | - "Site" site |
86 | | - "repo" $repo |
87 | | - "sprint" $backlog_filter |
88 | | - "path" $currentPath |
89 | | - ) }} |
90 | | - {{ end }} |
| 76 | + {{ end }} |
| 77 | + {{ if lt 0 ($mandatoryTasks | len) }} |
| 78 | + <h2>Mandatory Tasks</h2> |
| 79 | + <p>These tasks will help consolidate your learning for this sprint. You should complete as many of these as possible before class on Saturday.</p> |
| 80 | + {{range $mandatoryTasks}} |
| 81 | + {{ partial "block/backlog-issue.html" (dict |
| 82 | + "block" . |
| 83 | + "Page" $.Page |
| 84 | + "Site" site |
| 85 | + "sprint" $backlog_filter |
| 86 | + "path" $currentPath |
| 87 | + ) }} |
91 | 88 | {{ end }} |
92 | | - {{ if lt 0 ($optionalTasks | len) }} |
93 | | - <h2>Optional Tasks</h2> |
94 | | - <p>These are optional "stretch goals" to attempt when you have finished the mandatory tasks. They may be more challenging or require some additional research.</p> |
95 | | - {{range $optionalTasks}} |
96 | | - {{ partial "block/backlog-issue.html" (dict |
97 | | - "block" . |
98 | | - "Page" $.Page |
99 | | - "Site" site |
100 | | - "repo" $repo |
101 | | - "sprint" $backlog_filter |
102 | | - "path" $currentPath |
103 | | - ) }} |
104 | | - {{ end }} |
| 89 | + {{ end }} |
| 90 | + {{ if lt 0 ($optionalTasks | len) }} |
| 91 | + <h2>Optional Tasks</h2> |
| 92 | + <p>These are optional "stretch goals" to attempt when you have finished the mandatory tasks. They may be more challenging or require some additional research.</p> |
| 93 | + {{range $optionalTasks}} |
| 94 | + {{ partial "block/backlog-issue.html" (dict |
| 95 | + "block" . |
| 96 | + "Page" $.Page |
| 97 | + "Site" site |
| 98 | + "sprint" $backlog_filter |
| 99 | + "path" $currentPath |
| 100 | + ) }} |
105 | 101 | {{ end }} |
106 | 102 | {{ end }} |
107 | | - </article> |
| 103 | +</article> |
108 | 104 | {{ end }} |
0 commit comments