Skip to content

Commit e99fcb0

Browse files
committed
fix: don't show candidate age or course if flag is set
1 parent fd3fe74 commit e99fcb0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/resources/templates/gremien/candidate.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@
3434
<div class="row justify-content-center mb-4">
3535
<div class="col-12 col-lg-8 text-center">
3636
<h2 class="card-text text-"
37-
th:text="${candidate.age le 0} ? |${candidate.firstname} ${candidate.lastname}| : |${candidate.firstname} ${candidate.lastname}, ${candidate.age}|">
37+
th:text="${candidate.ageShowing} ? |${candidate.firstname} ${candidate.lastname}, ${candidate.age}| : |${candidate.firstname} ${candidate.lastname}|">
3838
</h2>
3939
<h6 class="text-secondary"
40-
th:text="${candidate.semester le 0 || candidate.course eq ''} ? #{candidate.student} : |${candidate.semester}. Semester, ${candidate.course}|">
40+
th:text="${candidate.courseShowing} ? |${candidate.semester}. #{semester}, ${candidate.course}| : #{candidate.student}">
4141
</h6>
4242
</div>
4343
</div>

0 commit comments

Comments
 (0)