publication detail:

show country flags for institutions
This commit is contained in:
2026-07-06 22:54:39 +02:00
parent 78a8e5d919
commit e4dbe07436
2 changed files with 28 additions and 3 deletions
@@ -308,9 +308,22 @@
@for (institution of institutions(); track institution.id) {
<div>
<strong>{{ institution.name }}</strong>
<span>{{
institution.country || institution.type || ''
}}</span>
@if (institution.country) {
<span class="institution-country">
<img
alt=""
class="flag-img"
[src]="
'https://flagcdn.io/' +
institution.country.toLowerCase() +
'.svg'
"
height="14" />
{{ institution.country.toUpperCase() }}
</span>
} @else if (institution.type) {
<span>{{ institution.type }}</span>
}
</div>
}
</div>
@@ -360,6 +360,18 @@ dd {
font-size: 11px;
}
.institution-country {
display: inline-flex;
align-items: center;
gap: 5px;
font-size: 13px;
}
.institution-country .flag-img {
border: 1px solid var(--sg-border);
border-radius: 2px;
}
.link-list a {
display: flex;
align-items: center;