publication detail:
show country flags for institutions
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user