Rename var
*not* !important
This commit is contained in:
parent
db6ee061c5
commit
d9861f860a
2 changed files with 6 additions and 6 deletions
|
@ -52,18 +52,18 @@
|
||||||
<div class="taken-courses">
|
<div class="taken-courses">
|
||||||
<h6 class="text-muted">{{ i18n "taken_courses" }}</h6>
|
<h6 class="text-muted">{{ i18n "taken_courses" }}</h6>
|
||||||
{{ if .takenCourses.showGrades }}
|
{{ if .takenCourses.showGrades }}
|
||||||
{{ $isScale := .takenCourses.isScale }}
|
{{ $dontScale := .takenCourses.dontScale}}
|
||||||
<table>
|
<table>
|
||||||
<thead>
|
<thead>
|
||||||
<th>{{ i18n "course_name" }}</th>
|
<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>
|
<th>{{ i18n "obtained_credit" }}</th>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
{{ range $index,$course := .takenCourses.courses }}
|
{{ range $index,$course := .takenCourses.courses }}
|
||||||
<tr class="course {{ if gt $index 1 }}hidden-course{{ end}}">
|
<tr class="course {{ if gt $index 1 }}hidden-course{{ end}}">
|
||||||
<td>{{ $course.name }}</td>
|
<td>{{ $course.name }}</td>
|
||||||
{{ if $isScale }}<td>{{ $course.outOf }}</td>{{ end }}
|
{{ if not $dontScale }}<td>{{ $course.outOf }}</td>{{ end }}
|
||||||
<td>{{ $course.achieved }}</td>
|
<td>{{ $course.achieved }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
|
@ -52,18 +52,18 @@
|
||||||
<div class="taken-courses">
|
<div class="taken-courses">
|
||||||
<h6 class="text-muted">{{ i18n "taken_courses"}}</h6>
|
<h6 class="text-muted">{{ i18n "taken_courses"}}</h6>
|
||||||
{{ if .takenCourses.showGrades }}
|
{{ if .takenCourses.showGrades }}
|
||||||
{{ $isScale := .takenCourses.isScale }}
|
{{ $dontScale := .takenCourses.dontScale}}
|
||||||
<table>
|
<table>
|
||||||
<thead>
|
<thead>
|
||||||
<th>{{ i18n "course_name"}}</th>
|
<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>
|
<th>{{ i18n "obtained_credit"}}</th>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
{{ range $index,$course := .takenCourses.courses }}
|
{{ range $index,$course := .takenCourses.courses }}
|
||||||
<tr class="course {{ if gt $index 1 }}hidden-course{{ end}}">
|
<tr class="course {{ if gt $index 1 }}hidden-course{{ end}}">
|
||||||
<td>{{ $course.name }}</td>
|
<td>{{ $course.name }}</td>
|
||||||
{{ if $isScale }}<td>{{ $course.outOf }}</td>{{ end }}
|
{{ if not $dontScale }}<td>{{ $course.outOf }}</td>{{ end }}
|
||||||
<td>{{ $course.achieved }}</td>
|
<td>{{ $course.achieved }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue