...
 
Commits (2)
......@@ -64,8 +64,8 @@ export class GroupProfileFeedSortedComponent {
@ViewChild('poster', { static: false }) protected poster: PosterComponent;
constructor(
public feedsService: FeedsService,
protected service: GroupsService,
public feedsService: FeedsService,
protected sortedService: SortedService,
protected session: Session,
protected router: Router,
......
......@@ -14,7 +14,7 @@
<a [routerLink]="['/pro', channel.username, 'videos']" routerLinkActive="active" i18n>Videos</a>
<a [routerLink]="['/pro', channel.username, 'images']" routerLinkActive="active" i18n>Images</a>
<a [routerLink]="['/pro', channel.username, 'articles']" routerLinkActive="active" i18n>Articles</a>
<a [routerLink]="['/pro', channel.username, 'groups']" routerLinkActive="active" i18n>Groups</a>
<!-- <a [routerLink]="['/pro', channel.username, 'groups']" routerLinkActive="active" i18n>Groups</a>-->
<a [routerLink]="['/pro', channel.username, 'feed']" routerLinkActive="active" i18n>Feed</a>
<!-- <a [routerLink]="['/pro', username, 'donate']" routerLinkActive="active">Donate</a>-->
<!-- <a [routerLink]="['/pro', username, 'signup']" routerLinkActive="active">Signup | Login</a>-->
......
......@@ -37,9 +37,17 @@
<!--&lt;!&ndash; TODO: add infinite scroll or something to load more &ndash;&gt;-->
<div class="m-proChannelList__content">
<ul class="m-proChannelListContent__list">
<li *ngFor="let entity of (feedsService.feed | async)">
<img style="max-height: 320px; width: 100%; height: 100%; object-fit: cover" [src]="(entity | async).thumbnail_src" alt="">
</li>
</ul>
<ng-container *ngIf="type === 'images' || type === 'videos' || type === 'blogs'">
<ul class="m-proChannelListContent__list">
<li *ngFor="let entity of (feedsService.feed | async)">
<img style="max-height: 320px; width: 100%; height: 100%; object-fit: cover" [src]="(entity | async).thumbnail_src" alt="">
</li>
</ul>
</ng-container>
<ng-container *ngIf="type === 'activities'">
<pre *ngFor="let entity of (feedsService.feed | async)">{{entity | async | json}}</pre>
</ng-container>
<ng-container *ngIf="type === 'groups'">
<pre *ngFor="let entity of (feedsService.feed | async)">{{entity | async | json}}</pre>
</ng-container>
</div>