2022-01-20 10:19:44 +01:00
|
|
|
<ul class="uk-list uk-list-large" [class]="'uk-list uk-margin ' + custom_class" uk-height-match="target: .uk-card-default; row: false">
|
2020-06-05 14:56:28 +02:00
|
|
|
<errorMessages [status]="[status]" [type]="'results'"></errorMessages>
|
2022-01-21 09:20:46 +01:00
|
|
|
<li *ngFor="let result of results" class="uk-animation-fade">
|
|
|
|
<div class="uk-card uk-card-default uk-card-body uk-card-hover uk-position-relative uk-flex uk-flex-column uk-flex-center" [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-01-20 10:19:44 +01:00
|
|
|
class="uk-alert-primary uk-padding-small uk-position-top-left uk-text-center">
|
2020-06-05 14:56:28 +02:00
|
|
|
<span>Subscribed</span>
|
|
|
|
</div>
|
2022-01-20 10:19:44 +01:00
|
|
|
<div *ngIf="type === 'community' && result.status === 'manager'"
|
|
|
|
class="uk-position-top-right uk-margin-top uk-margin-right uk-flex uk-flex-middle">
|
|
|
|
<icon [name]="visibilityIcon.get('RESTRICTED')"></icon>
|
|
|
|
<span class="space uk-text-small uk-text-capitalize">restricted</span>
|
|
|
|
</div>
|
|
|
|
<div *ngIf="type === 'community' && result.status === 'hidden'"
|
|
|
|
class="uk-position-top-right uk-margin-top uk-margin-right uk-flex uk-flex-middle">
|
|
|
|
<icon [name]="visibilityIcon.get('PRIVATE')"></icon>
|
|
|
|
<span class="space uk-text-small uk-text-capitalize">private</span>
|
|
|
|
</div>
|
|
|
|
<div *ngIf="result.visibility && result.visibility !== 'PUBLIC'"
|
|
|
|
class="uk-position-top-right uk-margin-top uk-margin-right uk-flex uk-flex-middle">
|
|
|
|
<icon [name]="visibilityIcon.get(result.visibility)"></icon>
|
|
|
|
<span class="space uk-text-small uk-text-capitalize">{{result.visibility.toLowerCase()}}</span>
|
|
|
|
</div>
|
2021-10-19 14:20:30 +02:00
|
|
|
</div>
|
2020-06-05 14:56:28 +02:00
|
|
|
<div class="uk-grid uk-flex uk-flex-middle" uk-grid>
|
2021-10-05 17:12:19 +02: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)"
|
2020-06-09 10:57:05 +02:00
|
|
|
class="uk-width-1-5@s"
|
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-01-21 09:20: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-01-21 09:20: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-01-20 10:19:44 +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-01-21 09:20: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-01-21 09:20: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-01-20 10:19:44 +01:00
|
|
|
<div *ngIf="result.description" class="uk-margin-bottom multi-line-ellipsis lines-2">
|
|
|
|
<p class="uk-text-justify">
|
|
|
|
{{result.description}}
|
|
|
|
</p>
|
2020-06-05 14:56:28 +02:00
|
|
|
</div>
|
2022-01-20 10:19:44 +01:00
|
|
|
<div class="uk-text-small uk-flex uk-flex-middle">
|
|
|
|
<span class="uk-text-muted" *ngIf="result.date || result.creationDate">Creation Date: </span>
|
|
|
|
<span class="uk-margin-small-left" *ngIf="result.date">{{result.date | date:'dd-MM-yyyy'}}</span>
|
|
|
|
<span class="uk-margin-small-left" *ngIf="result.creationDate">{{result.creationDate | date:'dd-MM-yyyy'}}</span>
|
|
|
|
<span *ngIf="type === 'community' && showType && result.type" class="uk-margin-left">
|
|
|
|
<span class="uk-text-muted">Type:</span>
|
|
|
|
<span class="uk-margin-small-left uk-text-capitalize">{{mapType(result.type)}}</span>
|
|
|
|
</span>
|
|
|
|
<span *ngIf="type === 'stakeholder' && result.type" class="uk-margin-left">
|
|
|
|
<span class="uk-text-muted">Type:</span>
|
|
|
|
<span class="uk-margin-small-left uk-text-capitalize">{{mapType(result.type)}}</span>
|
|
|
|
</span>
|
2020-06-05 14:56:28 +02:00
|
|
|
</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>
|
|
|
|
<modal-alert #AlertModal (alertOutput)="goToPage($event)">
|
|
|
|
<div class="uk-text-left">
|
|
|
|
You will be navigated to a new tab. Are you sure that you want to proceed?
|
|
|
|
</div>
|
|
|
|
</modal-alert>
|
2021-10-05 17:12:19 +02:00
|
|
|
<ng-template #resultPreview let-result="result">
|
|
|
|
<div class="uk-flex uk-flex-center">
|
2022-01-20 10:19:44 +01:00
|
|
|
<img *ngIf="result.logoUrl" [src]="result | logoUrl" [alt]="((result.title)?result.title:result.shortTitle) + ' logo'" loading="lazy">
|
2021-10-05 17:12:19 +02:00
|
|
|
</div>
|
|
|
|
</ng-template>
|