Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions common-theme/layouts/partials/block/data.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
{{ .Scratch.SetInMap "blockData" "hasBlocks" .hasBlocks| default "" }}
{{/* Override any block time */}}
{{ .Scratch.SetInMap "blockData" "time" .time | default "" }}
{{ .Scratch.SetInMap "blockData" "pageLayout" $pageRef.Page.Params.layout}}

{{/* Now let's do our headers */}}
{{ $headers := partial "github-auth.html" }}
Expand Down
3 changes: 3 additions & 0 deletions common-theme/layouts/partials/block/local.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,8 @@ <h3>🗂️ Options</h3>
{{ end }}
</section>
{{ end }}
{{ if isset $block.Params "objectives" }}
{{ partial "review-objectives.html" $blockData }}
{{ end }}
</div>
</section>
3 changes: 3 additions & 0 deletions common-theme/layouts/partials/block/readme.html
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,8 @@ <h3>🗂️ Related</h3>
{{ end }}
</section>
{{ end }}
{{ if gt (len $extractedObjectives) 0 }}
{{ partial "review-objectives.html" $blockData }}
{{ end }}
</section>
{{ end }}
4 changes: 4 additions & 0 deletions common-theme/layouts/partials/review-objectives.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{{ if eq .pageLayout "day-plan" }}
<h3>Review</h3>
Look back over the objectives of this activity - check you've met them all. If you haven't, make sure you have a plan for how to achieve them - maybe checking in with a volunteer or a fellow trainee could help?
{{ end }}
Loading