Rename var

*not* !important
This commit is contained in:
Roxedus 2021-02-16 01:58:14 +01:00
parent db6ee061c5
commit d9861f860a
No known key found for this signature in database
GPG key ID: 9B4E311961C63639
2 changed files with 6 additions and 6 deletions

View file

@ -52,18 +52,18 @@
<div class="taken-courses">
<h6 class="text-muted">{{ i18n "taken_courses" }}</h6>
{{ if .takenCourses.showGrades }}
{{ $isScale := .takenCourses.isScale }}
{{ $dontScale := .takenCourses.dontScale}}
<table>
<thead>
<th>{{ i18n "course_name" }}</th>
{{ if $isScale }}<th>{{ i18n "total_credit" }}</th>{{ end }}
{{ if not $dontScale }}<th>{{ i18n "total_credit" }}</th>{{ end }}
<th>{{ i18n "obtained_credit" }}</th>
</thead>
<tbody>
{{ range $index,$course := .takenCourses.courses }}
<tr class="course {{ if gt $index 1 }}hidden-course{{ end}}">
<td>{{ $course.name }}</td>
{{ if $isScale }}<td>{{ $course.outOf }}</td>{{ end }}
{{ if not $dontScale }}<td>{{ $course.outOf }}</td>{{ end }}
<td>{{ $course.achieved }}</td>
</tr>
{{ end }}

View file

@ -52,18 +52,18 @@
<div class="taken-courses">
<h6 class="text-muted">{{ i18n "taken_courses"}}</h6>
{{ if .takenCourses.showGrades }}
{{ $isScale := .takenCourses.isScale }}
{{ $dontScale := .takenCourses.dontScale}}
<table>
<thead>
<th>{{ i18n "course_name"}}</th>
{{ if $isScale }}<th>{{ i18n "total_credit"}}</th>{{ end }}
{{ if not $dontScale }}<th>{{ i18n "total_credit"}}</th>{{ end }}
<th>{{ i18n "obtained_credit"}}</th>
</thead>
<tbody>
{{ range $index,$course := .takenCourses.courses }}
<tr class="course {{ if gt $index 1 }}hidden-course{{ end}}">
<td>{{ $course.name }}</td>
{{ if $isScale }}<td>{{ $course.outOf }}</td>{{ end }}
{{ if not $dontScale }}<td>{{ $course.outOf }}</td>{{ end }}
<td>{{ $course.achieved }}</td>
</tr>
{{ end }}