Skip to content

Commit

Permalink
Only show details if they have a value #716
Browse files Browse the repository at this point in the history
  • Loading branch information
caebr committed Dec 12, 2024
1 parent 6043a5a commit d2fd7ca
Showing 1 changed file with 10 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,14 @@ <h1>{{ person()?.FullName }}</h1>
<span class="ms-2">{{ studentEntry()?.status }}</span>
</div>
@for (detail of subscriptionDetails(); track detail.id) {
<div class="detail">
<div>{{ detail.label }}</div>
@if (detail.file !== null) {
<a href="{{ detail.file }}" target="_blank">{{ detail.value }}</a>
} @else {
{{ detail.value }}
}
</div>
@if (detail.value) {
<div class="detail">
<div>{{ detail.label }}</div>
@if (detail.file !== null) {
<a href="{{ detail.file }}" target="_blank">{{ detail.value }}</a>
} @else {
{{ detail.value }}
}
</div>
}
}

0 comments on commit d2fd7ca

Please sign in to comment.