Add logoUrl pipe in communities logoUrl

This commit is contained in:
Konstantinos Triantafyllou 2021-11-12 14:21:37 +02:00
parent 0b55b0dcd7
commit 380f307cdd
3 changed files with 4 additions and 3 deletions

View File

@ -13,7 +13,7 @@
<a *ngIf="directLink" [href]="getCommunityPageUrl()" target="_blank">
<div class="community">
<img *ngIf="community.logoUrl"
[src]="community.getLogoUrl()"
[src]="community | logoUrl"
alt="{{(community.title)?community.title:community.shortTitle}} logo">
<span *ngIf="!community.logoUrl" class="uk-icon">
<svg viewBox="0 0 20 20" class="uk-width-1-1" xmlns="http://www.w3.org/2000/svg" ratio="2.5"> <circle fill="none" stroke="#000"

View File

@ -9,11 +9,12 @@ import {SearchFormModule} from '../../openaireLibrary/searchPages/search
import {ManageModule} from '../../openaireLibrary/utils/manage/manage.module';
import {AlertModalModule} from "../../openaireLibrary/utils/modal/alertModal.module";
import {UrlPrefixModule} from "../../openaireLibrary/utils/pipes/url-prefix.module";
import {LogoUrlPipeModule} from "../../openaireLibrary/utils/pipes/logoUrlPipe.module";
@NgModule({
imports: [
CommonModule, FormsModule, RouterModule,
SearchFormModule, ManageModule, AlertModalModule, UrlPrefixModule
SearchFormModule, ManageModule, AlertModalModule, UrlPrefixModule, LogoUrlPipeModule
],
declarations: [
BrowseCommunityComponent

@ -1 +1 @@
Subproject commit b9e6894ba15ee562b433c8e5fe72775eb3a2449d
Subproject commit 7ef741c205a3659e28d1f8521a37e2cc0d969de5