Work in progress
This commit is contained in:
parent
1ca8d54296
commit
045665ae10
|
@ -2,7 +2,6 @@
|
|||
<errorMessages [status]="[status]" [type]="'results'"></errorMessages>
|
||||
<li *ngFor="let result of results" class="uk-animation-fade uk-margin-auto">
|
||||
<div class="uk-card portalSearchCard uk-position-relative uk-flex uk-flex-column uk-flex-center" [class.disabled]="!hasPermission(result)">
|
||||
<pre>{{hasPermission(result)}}</pre>
|
||||
<div class="badges">
|
||||
<div *ngIf="type === 'community' && result.isSubscribed"
|
||||
class="portal-card-badge uk-text-center">
|
||||
|
@ -15,8 +14,8 @@
|
|||
</div>
|
||||
<div *ngIf="type === 'community' && result.status == 'manager'"
|
||||
class="uk-position-top-right uk-margin-small-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>
|
||||
<icon [name]="visibilityIcon.get('RESTRICTED')"></icon>
|
||||
<span class="space uk-text-small uk-text-capitalize">restricted</span>
|
||||
</div>
|
||||
<div *ngIf="result.visibility && result.visibility !== 'PUBLIC'"
|
||||
class="uk-position-top-right uk-margin-small-top uk-margin-right uk-flex uk-flex-middle">
|
||||
|
@ -39,14 +38,17 @@
|
|||
</div>
|
||||
<div class="uk-width-expand">
|
||||
<div *ngIf="type === 'community'" [title]="result.shortTitle" class="uk-text-large uk-grid" uk-grid>
|
||||
<a *ngIf="directLink" [href]="getCommunityPageUrl(result)" target="_blank"
|
||||
<a *ngIf="directLink && hasPermission(result)" [href]="getCommunityPageUrl(result)" target="_blank"
|
||||
[class]="(result.isManager)?'uk-width-3-4@s portal-link':'portal-link'">
|
||||
{{(result.title) ? result.title : result.shortTitle}}
|
||||
</a>
|
||||
<a *ngIf="!directLink" (click)="confirmModalOpen(result)" [class]="(result.isManager)?'uk-width-3-4@s':''"
|
||||
<a *ngIf="!directLink && hasPermission(result)" (click)="confirmModalOpen(result)" [class]="(result.isManager)?'uk-width-3-4@s':''"
|
||||
class="portal-link">
|
||||
{{(result.title) ? result.title : result.shortTitle}}
|
||||
</a>
|
||||
<div *ngIf="!hasPermission(result)" [class.uk-width-3-4@s]="result.isManager">
|
||||
{{(result.title) ? result.title : result.shortTitle}}
|
||||
</div>
|
||||
</div>
|
||||
<div *ngIf="type === 'stakeholder'" [title]="result.index_shortName" class="uk-text-large uk-grid">
|
||||
<a *ngIf="directLink && hasPermission(result)" [href]="getStakeholderPageUrl(result)" target="_blank"
|
||||
|
|
Loading…
Reference in New Issue