From 0104c49a4a3d0abbe98ecca3c951b7a260091982 Mon Sep 17 00:00:00 2001 From: Roxedus Date: Tue, 16 Feb 2021 11:39:25 +0100 Subject: [PATCH] Add optional variable to education for courses where scaling doesn't make sense (#231) * Add optional variable to education Scales for courses doesnt always apply * Rename var *not* !important * Rename var Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com> --- layouts/partials/sections/education-alt.html | 7 ++++--- layouts/partials/sections/education.html | 7 ++++--- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/layouts/partials/sections/education-alt.html b/layouts/partials/sections/education-alt.html index 7d9597f..5ba1059 100644 --- a/layouts/partials/sections/education-alt.html +++ b/layouts/partials/sections/education-alt.html @@ -51,18 +51,19 @@ {{ if .takenCourses }}
{{ i18n "taken_courses" }}
- {{ if .takenCourses.showGrades }} + {{ if .takenCourses.showGrades }} + {{ $hideScale := .takenCourses.hideScale }} - + {{ if not $hideScale }}{{ end }} {{ range $index,$course := .takenCourses.courses }} - + {{ if not $hideScale }}{{ end }} {{ end }} diff --git a/layouts/partials/sections/education.html b/layouts/partials/sections/education.html index b6b5aee..21c195c 100644 --- a/layouts/partials/sections/education.html +++ b/layouts/partials/sections/education.html @@ -51,18 +51,19 @@ {{ if .takenCourses }}
{{ i18n "taken_courses"}}
- {{ if .takenCourses.showGrades }} + {{ if .takenCourses.showGrades }} + {{ $hideScale := .takenCourses.hideScale }}
{{ i18n "course_name" }}{{ i18n "total_credit" }}{{ i18n "total_credit" }}{{ i18n "obtained_credit" }}
{{ $course.name }}{{ $course.outOf }}{{ $course.outOf }}{{ $course.achieved }}
- + {{ if not $hideScale }}{{ end }} {{ range $index,$course := .takenCourses.courses }} - + {{ if not $hideScale }}{{ end }} {{ end }}
{{ i18n "course_name"}}{{ i18n "total_credit"}}{{ i18n "total_credit"}}{{ i18n "obtained_credit"}}
{{ $course.name }}{{ $course.outOf }}{{ $course.outOf }}{{ $course.achieved }}