2022-02-16 11:01:41 +01:00
|
|
|
<ul class="uk-list uk-list-xlarge" [class]="'uk-list uk-margin ' + 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-02-15 15:25:46 +01:00
|
|
|
[class.uk-disabled]="!hasPermission(result)">
|
2022-01-20 12:42:10 +01:00
|
|
|
<div>
|
2020-11-02 17:55:05 +01:00
|
|
|
<div *ngIf="type === 'community' && result.isSubscribed"
|
2022-06-03 17:34:23 +02:00
|
|
|
class="uk-text-background uk-text-center uk-position-top-left uk-padding-small uk-text-uppercase uk-text-bold">
|
|
|
|
<span>Member</span>
|
2020-06-05 14:56:28 +02:00
|
|
|
</div>
|
2022-01-20 10:19:44 +01:00
|
|
|
<div *ngIf="type === 'community' && result.status === 'manager'"
|
2022-02-16 11:01:41 +01:00
|
|
|
class="uk-position-top-right uk-margin-top uk-margin-right uk-flex uk-flex-column uk-flex-middle">
|
2022-02-17 16:30:37 +01:00
|
|
|
<icon [name]="visibilityIcon.get('RESTRICTED')" ratio="1.2" [flex]="true"></icon>
|
2022-02-14 17:02:00 +01:00
|
|
|
<span class="uk-text-small uk-text-capitalize">restricted</span>
|
2022-01-20 10:19:44 +01:00
|
|
|
</div>
|
|
|
|
<div *ngIf="type === 'community' && result.status === 'hidden'"
|
2022-02-16 11:01:41 +01:00
|
|
|
class="uk-position-top-right uk-margin-top uk-margin-right uk-flex uk-flex-column uk-flex-middle">
|
2022-02-17 16:30:37 +01:00
|
|
|
<icon [name]="visibilityIcon.get('PRIVATE')" ratio="1.2" [flex]="true"></icon>
|
2022-02-14 17:02:00 +01:00
|
|
|
<span class="uk-text-small uk-text-capitalize">private</span>
|
2022-01-20 10:19:44 +01:00
|
|
|
</div>
|
|
|
|
<div *ngIf="result.visibility && result.visibility !== 'PUBLIC'"
|
2022-02-16 11:01:41 +01:00
|
|
|
class="uk-position-top-right uk-margin-top uk-margin-right uk-flex uk-flex-column uk-flex-middle">
|
2022-02-17 16:30:37 +01:00
|
|
|
<icon [name]="visibilityIcon.get(result.visibility)" ratio="1.2" [flex]="true"></icon>
|
2022-02-14 17:02:00 +01:00
|
|
|
<span class="uk-text-small uk-text-capitalize">{{result.visibility.toLowerCase()}}</span>
|
2022-01-20 10:19:44 +01:00
|
|
|
</div>
|
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>
|
2022-02-15 15:25:46 +01:00
|
|
|
<a *ngIf="directLink && hasPermission(result)"
|
|
|
|
[href]="(type === 'community')?getCommunityPageUrl(result):getStakeholderPageUrl(result)"
|
2022-01-20 10:19:44 +01:00
|
|
|
target="_blank" class="uk-width-1-5@s">
|
2021-10-05 17:12:19 +02:00
|
|
|
<ng-container *ngTemplateOutlet="resultPreview; context: {result: result}"></ng-container>
|
2020-06-05 14:56:28 +02:00
|
|
|
</a>
|
2021-10-05 17:12:19 +02:00
|
|
|
<a *ngIf="!directLink && hasPermission(result)"
|
2022-05-05 11:45:39 +02:00
|
|
|
class="uk-width-1-5@s uk-width-1-1"
|
2020-06-05 14:56:28 +02:00
|
|
|
(click)="confirmModalOpen(result)">
|
2021-10-05 17:12:19 +02:00
|
|
|
<ng-container *ngTemplateOutlet="resultPreview; context: {result: result}"></ng-container>
|
2020-06-05 14:56:28 +02:00
|
|
|
</a>
|
2021-10-05 17:12:19 +02:00
|
|
|
<div *ngIf="!hasPermission(result)" class="uk-width-1-5@s">
|
|
|
|
<ng-container *ngTemplateOutlet="resultPreview; context: {result: result}"></ng-container>
|
|
|
|
</div>
|
2020-06-05 14:56:28 +02:00
|
|
|
<div class="uk-width-expand">
|
2022-01-20 10:19:44 +01:00
|
|
|
<div *ngIf="type === 'community'" [title]="result.shortTitle" class="uk-margin-bottom">
|
2022-02-15 15:25:46 +01:00
|
|
|
<a *ngIf="directLink && hasPermission(result)" [href]="getCommunityPageUrl(result)"
|
|
|
|
class="uk-h5 uk-link-heading" target="_blank">
|
2020-06-05 14:56:28 +02:00
|
|
|
{{(result.title) ? result.title : result.shortTitle}}
|
|
|
|
</a>
|
2022-02-15 15:25:46 +01:00
|
|
|
<a *ngIf="!directLink && hasPermission(result)" (click)="confirmModalOpen(result)"
|
|
|
|
class="uk-h5 uk-link-heading">
|
2020-06-05 14:56:28 +02:00
|
|
|
{{(result.title) ? result.title : result.shortTitle}}
|
|
|
|
</a>
|
2022-02-15 15:25:46 +01:00
|
|
|
<h5 *ngIf="!hasPermission(result)">
|
2021-11-03 13:00:05 +01:00
|
|
|
{{(result.title) ? result.title : result.shortTitle}}
|
2022-01-20 10:19:44 +01:00
|
|
|
</h5>
|
2020-06-05 14:56:28 +02:00
|
|
|
</div>
|
2022-01-20 10:19:44 +01:00
|
|
|
<div *ngIf="type === 'stakeholder'" [title]="result.index_shortName" class="uk-margin-bottom">
|
2022-02-15 15:25:46 +01:00
|
|
|
<a *ngIf="directLink && hasPermission(result)" [href]="getStakeholderPageUrl(result)"
|
|
|
|
class="uk-h5 uk-link-heading" target="_blank">
|
2020-06-05 14:56:28 +02:00
|
|
|
{{(result.name) ? result.name : result.index_shortName}}
|
|
|
|
</a>
|
2022-02-15 15:25:46 +01:00
|
|
|
<a *ngIf="!directLink && hasPermission(result)" (click)="confirmModalOpen(result)"
|
|
|
|
class="uk-h5 uk-link-heading">
|
2020-06-09 10:57:05 +02:00
|
|
|
{{(result.name) ? result.name : result.index_shortName}}
|
2020-06-05 14:56:28 +02:00
|
|
|
</a>
|
2022-01-20 10:19:44 +01:00
|
|
|
<h5 *ngIf="!hasPermission(result)">
|
2021-10-05 17:12:19 +02:00
|
|
|
{{(result.name) ? result.name : result.index_shortName}}
|
2022-01-20 10:19:44 +01:00
|
|
|
</h5>
|
2020-06-05 14:56:28 +02:00
|
|
|
</div>
|
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-05-05 11:45:39 +02:00
|
|
|
<div *ngIf="result.description" class="uk-margin-top uk-text-small multi-line-ellipsis lines-3">
|
|
|
|
<p class="uk-text-meta">
|
|
|
|
{{result.description}}
|
|
|
|
</p>
|
|
|
|
</div>
|
2020-06-05 14:56:28 +02:00
|
|
|
</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>
|