61 lines
2.5 KiB
HTML
61 lines
2.5 KiB
HTML
<div class=" uk-section uk-margin-small-top tm-middle uk-container" id="tm-main">
|
|
|
|
<div class="uk-container uk-margin-bottom">
|
|
|
|
<article *ngIf="community" class="uk-article ">
|
|
<div *ngIf="communityId == null || communityId == ''" class="uk-child-width-1-6@l uk-child-width-1-6@m uk-child-width-1-3@s uk-text-center uk-alert uk-alert-primary">
|
|
No community chosen
|
|
</div>
|
|
|
|
<div *ngIf="communityId != null && communityId != '' && community != null">
|
|
<blockquote>
|
|
<div *ngIf="community.title != null">
|
|
<p> {{community.title}}</p>
|
|
</div>
|
|
<div *ngIf="community.title == null && community.shortTitle != null">
|
|
<p> {{community.shortTitle}}</p>
|
|
</div>
|
|
<div *ngIf="community.description != null">
|
|
<p> {{community.description}}</p>
|
|
</div>
|
|
</blockquote>
|
|
<div *ngIf="community.subjects != null">
|
|
<span *ngFor="let subject of community.subjects.slice(0,10) let i=index">
|
|
<span *ngIf="subject != ''" class="uk-label uk-margin-small-bottom">{{subject}}</span>
|
|
<!-- <span *ngIf=" i<9 && i<(community.subjects.length-1)"> </span> -->
|
|
</span>
|
|
<span *ngIf="showAll">
|
|
<span *ngFor="let subject of community.subjects.slice(10) let i=index">
|
|
<span *ngIf="subject != ''" class="uk-label uk-margin-small-bottom">{{subject}}</span>
|
|
<!-- <span *ngIf="i<(community.subjects.length-1)"> </span> -->
|
|
</span>
|
|
</span>
|
|
<span *ngIf="!showAll && community.subjects.length > 10">
|
|
<a (click)="showAll = !showAll;">
|
|
show more
|
|
</a>
|
|
</span>
|
|
<span *ngIf="showAll">
|
|
<a (click)="showAll = !showAll;">
|
|
show less
|
|
</a>
|
|
</span>
|
|
</div>
|
|
<p>
|
|
<!--span *ngIf="community.managers != null && community.managers[0] != '' && community.managers[0] != null"> Curated by:
|
|
<span *ngFor='let manager of community.managers; let i = index'>{{manager.substr(0, manager.indexOf('@'))}}<span *ngIf="manager.includes('@') == 0">{{manager}}</span><span *ngIf="i<(community.managers.length-1)">,</span>
|
|
</span>
|
|
</span-->
|
|
<span *ngIf="community.date != null" class="uk-margin-left"> Created: {{community.date | date:'dd-MM-yyyy'}}</span>
|
|
</p>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
</article>
|
|
</div>
|
|
|
|
</div>
|