diff --git a/common-theme/layouts/_default/backlog.html b/common-theme/layouts/_default/backlog.html index 6d6d5b24f..3cca49fd7 100644 --- a/common-theme/layouts/_default/backlog.html +++ b/common-theme/layouts/_default/backlog.html @@ -14,32 +14,81 @@ for each repo, grab the issues that match the filter */}} {{ range $repos }} + {{ $setupTasks := slice }} + {{ $recurringTasks := slice }} + {{ $mandatoryTasks := slice }} + {{ $optionalTasks := slice }} {{ $issueBlocks := partial "block/issues-list-as-blocks.html" (dict "backlog" . "backlog_filter" $backlog_filter "path" $currentPath) }} {{ $repo := . }} {{ range $issueBlocks }} - -
- - {{ .name }} - 🔗 - - Clone - - -
- {{ partial "block/block.html" (dict "block" . "Page" - $.Page "Site" site ) - }} -
-
+ {{ $issue := . }} + {{ range .labels.nodes }} + {{if in .name "Recurring"}} + {{ $recurringTasks = $recurringTasks | append $issue }} + {{else if in .name "Setup"}} + {{ $setupTasks = $setupTasks | append $issue }} + {{else if in .name "Core"}} + {{ $mandatoryTasks = $mandatoryTasks | append $issue }} + {{else if in .name "Optional"}} + {{ $optionalTasks = $optionalTasks | append $issue }} + {{ end }} + {{ end }} + {{ end }} + {{ if lt 0 ($setupTasks | len) }} +

Start Here

+

These tasks should be completed before attempting anything else.

+ {{range $setupTasks}} + {{ partial "block/backlog-issue.html" (dict + "block" . + "Page" $.Page + "Site" site + "repo" $repo + "sprint" $backlog_filter + "path" $currentPath + ) }} + {{ end }} + {{ end }} + {{ if lt 0 ($recurringTasks | len) }} +

Recurring Tasks

+

These tasks need to be completed in every sprint.

+ {{range $recurringTasks}} + {{ partial "block/backlog-issue.html" (dict + "block" . + "Page" $.Page + "Site" site + "repo" $repo + "sprint" $backlog_filter + "path" $currentPath + ) }} + {{ end }} + {{ end }} + {{ if lt 0 ($mandatoryTasks | len) }} +

Mandatory Tasks

+

These tasks will help consolidate your learning for this sprint. You should complete as many of these as possible before class on Saturday.

+ {{range $mandatoryTasks}} + {{ partial "block/backlog-issue.html" (dict + "block" . + "Page" $.Page + "Site" site + "repo" $repo + "sprint" $backlog_filter + "path" $currentPath + ) }} + {{ end }} + {{ end }} + {{ if lt 0 ($optionalTasks | len) }} +

Optional Tasks

+

These are optional "stretch goals" to attempt when you have finished the mandatory tasks. They may be more challenging or require some additional research.

+ {{range $optionalTasks}} + {{ partial "block/backlog-issue.html" (dict + "block" . + "Page" $.Page + "Site" site + "repo" $repo + "sprint" $backlog_filter + "path" $currentPath + ) }} + {{ end }} {{ end }} {{ end }} diff --git a/common-theme/layouts/partials/block/backlog-issue.html b/common-theme/layouts/partials/block/backlog-issue.html new file mode 100644 index 000000000..b18c9a3f4 --- /dev/null +++ b/common-theme/layouts/partials/block/backlog-issue.html @@ -0,0 +1,18 @@ +
+ + {{ .block.name }} + 🔗 + + Clone + + +
+ {{ partial "block/block.html" (dict + "block" .block + "Page" $.Page + "Site" site + ) }} +
+
\ No newline at end of file diff --git a/common-theme/layouts/partials/block/issue.html b/common-theme/layouts/partials/block/issue.html index 23e22ca6c..5a68e950b 100644 --- a/common-theme/layouts/partials/block/issue.html +++ b/common-theme/layouts/partials/block/issue.html @@ -40,18 +40,5 @@

Learning Objectives

{{ $response.body | page.RenderString }}
- {{ with $response.labels }} - - {{ end }} {{ end }} diff --git a/common-theme/layouts/partials/block/issues-list-as-blocks.html b/common-theme/layouts/partials/block/issues-list-as-blocks.html index 741654026..6f13bb4f1 100644 --- a/common-theme/layouts/partials/block/issues-list-as-blocks.html +++ b/common-theme/layouts/partials/block/issues-list-as-blocks.html @@ -30,7 +30,7 @@ url number labels( - first: 25 + first: 50 orderBy: { direction: DESC field: NAME