2022-12-07 15:56:16 +01:00
|
|
|
<ul class="uk-list uk-list-large uk-margin" [class.uk-list-xlarge]="!isMobile" [ngClass]="custom_class"
|
2022-02-15 15:25:46 +01:00
|
|
|
uk-height-match="target: .uk-card-default; row: false">
|
2020-06-05 14:56:28 +02:00
|
|
|
<errorMessages [status]="[status]" [type]="'results'"></errorMessages>
|
2022-05-06 12:47:54 +02:00
|
|
|
<li *ngFor="let result of results">
|
2022-05-05 10:24:11 +02:00
|
|
|
<div class="uk-card uk-card-default uk-card-body uk-position-relative uk-flex uk-flex-column uk-flex-center"
|
2022-09-29 11:09:37 +02:00
|
|
|
[ngClass]="result.type" [class.uk-disabled]="!hasPermission(result)">
|
2022-12-07 15:56:16 +01:00
|
|
|
<div *ngIf="type === 'community' && result.isSubscribed" [class.uk-position-top-left]="!isMobile" [class.uk-position-top-right]="isMobile" class="uk-text-background uk-text-center uk-padding-small uk-text-uppercase uk-text-bold">
|
|
|
|
<span>Member</span>
|
|
|
|
</div>
|
|
|
|
<div [ngClass]="isMobile?'uk-flex uk-flex-middle uk-margin-bottom':'uk-position-top-right uk-margin-top uk-margin-right uk-flex uk-flex-column uk-flex-middle'">
|
|
|
|
<div *ngIf="type === 'community' && result.status === 'manager'">
|
|
|
|
<icon [name]="visibilityIcon.get('RESTRICTED')" [ratio]="isMobile?0.8:1.2" [flex]="true"></icon>
|
|
|
|
<span class="uk-text-small uk-text-capitalize" [class.uk-text-xsmall]="isMobile" [class.uk-margin-xsmall-left]="isMobile">restricted</span>
|
2022-01-20 10:19:44 +01:00
|
|
|
</div>
|
2022-12-07 15:56:16 +01:00
|
|
|
<ng-container *ngIf="type === 'community' && result.status === 'hidden'">
|
|
|
|
<icon [name]="visibilityIcon.get('PRIVATE')" [ratio]="isMobile?0.8:1.2" [flex]="true"></icon>
|
|
|
|
<span class="uk-text-small uk-text-capitalize" [class.uk-text-xsmall]="isMobile" [class.uk-margin-xsmall-left]="isMobile">private</span>
|
|
|
|
</ng-container>
|
|
|
|
<ng-container *ngIf="result.visibility && result.visibility !== 'PUBLIC'">
|
|
|
|
<icon [name]="visibilityIcon.get(result.visibility)" [ratio]="isMobile?0.8:1.2" [flex]="true"></icon>
|
|
|
|
<span class="uk-text-small uk-text-capitalize" [class.uk-text-xsmall]="isMobile" [class.uk-margin-xsmall-left]="isMobile">{{result.visibility.toLowerCase()}}</span>
|
|
|
|
</ng-container>
|
2021-10-19 14:20:30 +02:00
|
|
|
</div>
|
2022-05-05 11:45:39 +02:00
|
|
|
<div class="uk-grid uk-flex uk-flex-middle uk-margin-medium-right" uk-grid>
|
2020-06-05 14:56:28 +02:00
|
|
|
<div class="uk-width-expand">
|
2022-12-07 15:56:16 +01:00
|
|
|
<h5 [class.uk-h5]="!isMobile" [class.uk-h6]="isMobile">
|
|
|
|
<div *ngIf="type === 'community'" [title]="result.shortTitle" class="uk-margin-bottom">
|
|
|
|
<a *ngIf="directLink && hasPermission(result)" [href]="getCommunityPageUrl(result)" class="uk-link-heading uk-text-truncate uk-display-inline-block" target="_blank">{{(result.title) ? result.title : result.shortTitle}}</a>
|
|
|
|
<a *ngIf="!directLink && hasPermission(result)" (click)="confirmModalOpen(result)" class="uk-link-heading uk-text-truncate uk-display-inline-block">{{(result.title) ? result.title : result.shortTitle}}</a>
|
|
|
|
<div *ngIf="!hasPermission(result)" class="uk-text-truncate uk-display-inline-block">{{(result.title) ? result.title : result.shortTitle}}</div>
|
|
|
|
</div>
|
|
|
|
<div *ngIf="type === 'stakeholder'" [title]="result.index_shortName" class="uk-margin-bottom">
|
|
|
|
<a *ngIf="directLink && hasPermission(result)" [href]="getStakeholderPageUrl(result)" class="uk-link-heading uk-text-truncate uk-display-inline-block" target="_blank">{{(result.name) ? result.name : result.index_shortName}}</a>
|
|
|
|
<a *ngIf="!directLink && hasPermission(result)" (click)="confirmModalOpen(result)" class="uk-link-heading uk-text-truncate uk-display-inline-block">{{(result.name) ? result.name : result.index_shortName}}</a>
|
|
|
|
<div *ngIf="!hasPermission(result)" class="uk-text-truncate uk-display-inline-block">{{(result.name) ? result.name : result.index_shortName}}</div>
|
|
|
|
</div>
|
|
|
|
</h5>
|
2022-02-14 17:02:00 +01:00
|
|
|
<div class="uk-text-small">
|
|
|
|
<div *ngIf="result.date || result.creationDate" class="uk-flex uk-flex-middle uk-margin-small-bottom">
|
2022-05-05 11:45:39 +02:00
|
|
|
<span class="uk-text-meta">Creation Date: </span>
|
2022-02-14 17:02:00 +01:00
|
|
|
<span class="uk-margin-small-left" *ngIf="result.date">{{result.date | date:'dd-MM-yyyy'}}</span>
|
2022-02-15 15:25:46 +01:00
|
|
|
<span class="uk-margin-small-left"
|
|
|
|
*ngIf="result.creationDate">{{result.creationDate | date:'dd-MM-yyyy'}}</span>
|
2022-02-14 17:02:00 +01:00
|
|
|
</div>
|
2022-02-15 15:25:46 +01:00
|
|
|
<div *ngIf="showType && result.type" class="uk-flex uk-flex-middle">
|
2022-05-05 11:45:39 +02:00
|
|
|
<span class="uk-text-meta">Type:</span>
|
2022-02-15 15:25:46 +01:00
|
|
|
<span class="uk-margin-small-left uk-text-capitalize">{{mapType(result.type)}}</span>
|
2022-02-14 17:02:00 +01:00
|
|
|
</div>
|
2020-06-05 14:56:28 +02:00
|
|
|
</div>
|
2022-12-07 15:56:16 +01:00
|
|
|
<div *ngIf="result.description && !isMobile" class="uk-margin-top uk-text-small multi-line-ellipsis lines-3">
|
2022-09-07 09:25:56 +02:00
|
|
|
<p class="uk-text-meta" [innerHTML]="result.description"></p>
|
2022-05-05 11:45:39 +02:00
|
|
|
</div>
|
2020-06-05 14:56:28 +02:00
|
|
|
</div>
|
2022-12-07 15:56:16 +01:00
|
|
|
<div class="uk-width-1-5@m uk-width-1-3 uk-flex-first@m">
|
|
|
|
<a *ngIf="directLink && hasPermission(result)" [href]="(type === 'community')?getCommunityPageUrl(result):getStakeholderPageUrl(result)" target="_blank">
|
|
|
|
<ng-container *ngTemplateOutlet="resultPreview; context: {result: result}"></ng-container>
|
|
|
|
</a>
|
|
|
|
<a *ngIf="!directLink && hasPermission(result)" (click)="confirmModalOpen(result)">
|
|
|
|
<ng-container *ngTemplateOutlet="resultPreview; context: {result: result}"></ng-container>
|
|
|
|
</a>
|
|
|
|
<div *ngIf="!hasPermission(result)">
|
|
|
|
<ng-container *ngTemplateOutlet="resultPreview; context: {result: result}"></ng-container>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-01-20 10:19:44 +01:00
|
|
|
</div>
|
|
|
|
<div *ngIf="result.isManager" class="uk-flex uk-flex-right uk-margin-top">
|
|
|
|
<manage [communityId]="result.communityId" [alias]="result.alias"></manage>
|
2020-06-05 14:56:28 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
</ul>
|
2022-06-20 15:17:26 +02:00
|
|
|
<modal-alert #AlertModal [overflowBody]="false" (alertOutput)="goToPage($event)">
|
2020-06-05 14:56:28 +02:00
|
|
|
</modal-alert>
|
2021-10-05 17:12:19 +02:00
|
|
|
<ng-template #resultPreview let-result="result">
|
|
|
|
<div class="uk-flex uk-flex-center">
|
2022-06-26 22:30:54 +02:00
|
|
|
<img [src]="result | logoUrl" class="uk-blend-multiply"
|
2022-05-06 15:23:02 +02:00
|
|
|
[alt]="((result.title)?result.title:result.shortTitle) + ' logo'" loading="lazy">
|
2021-10-05 17:12:19 +02:00
|
|
|
</div>
|
|
|
|
</ng-template>
|