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-01-21 09:20:46 +01:00
|
|
|
<li *ngFor="let result of results" class="uk-animation-fade">
|
2022-02-16 11:01:41 +01:00
|
|
|
<div class="uk-card uk-card-default uk-card-body uk-card-hover 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-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'"
|
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>
|
2020-06-05 14:56:28 +02:00
|
|
|
<div class="uk-grid uk-flex uk-flex-middle" 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)"
|
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-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-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-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">
|
|
|
|
<span class="uk-text-muted">Creation Date: </span>
|
|
|
|
<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">
|
|
|
|
<span class="uk-text-muted">Type:</span>
|
|
|
|
<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>
|
|
|
|
</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-02-22 23:37:18 +01:00
|
|
|
<img *ngIf="result.logoUrl" [src]="result | logoUrl" class="uk-blend-multiply"
|
2022-02-15 15:25:46 +01:00
|
|
|
[alt]="((result.title)?result.title:result.shortTitle) + ' logo'" loading="lazy">
|
2021-10-05 17:12:19 +02:00
|
|
|
</div>
|
|
|
|
</ng-template>
|