<div class="container" *ngFor="let userProfile of userProfiles ;trackBy: trackId">
    <br/>
        <h1>{{userProfile.firstName}} {{userProfile.lastName}}<span class="badge badge-warning">4.2</span></h1>
    <br/>
    <!--<h2 id="page-heading">-->
        <!--<span jhiTranslate="zipConnectApp.userProfile.home.title">User Profiles</span>-->

        <!--<button id="jh-create-entity" class="btn btn-primary float-right jh-create-entity create-user-profile" [routerLink]="['/user-profile/new']">-->
            <!--<fa-icon [icon]="'plus'"></fa-icon>-->
            <!--<span  jhiTranslate="zipConnectApp.userProfile.home.createLabel">-->
            <!--Create new User Profile-->
            <!--</span>-->
        <!--</button>-->
    <!--</h2>-->

    <jhi-post></jhi-post>
    <jhi-post-detail></jhi-post-detail>
    <jhi-alert></jhi-alert>
    <jhi-newsfeed></jhi-newsfeed>
    <br/>


    <div class="container">
        <div class="card" style="width: 18rem;">
            <img class="card-img-top" src="" alt="Card image cap">
            <div class="card-body">
                <p class="card-text"><span>{{userProfile.firstName}}</span></p>
            </div>
        </div>
    </div>



<div class="container" *ngFor="let userProfile of userProfiles ;trackBy: trackId">
    <div class="card" style="width: 18rem;">
        <!--<a [routerLink]="['/user-profile', userProfile.id, 'view' ]">{{userProfile.id}}</a>-->
        <div class="card-header">
            MY STACK
        </div>
        <ul class="list-group list-group-flush">
            <li class="list-group-item">{{userProfile.userStack}}</li>
            <li class="list-group-item">{{userProfile.userStack}}</li>
            <li class="list-group-item">{{userProfile.userStack}}</li>
        </ul>
    </div>
</div>

    <!--<div class="container" *ngFor="let userProfile of userProfiles ;trackBy: trackId">-->
        <!--<div class="col-md-6">-->
            <!---->
        <!--</div>-->
    <!--</div>-->


    <div class="table-responsive" *ngIf="userProfiles">
        <table class="table table-striped">
            <thead>
            <tr>
            <th><span jhiTranslate="global.field.id">ID</span></th>
            <th><span jhiTranslate="zipConnectApp.userProfile.firstName">First Name</span></th>
            <th><span jhiTranslate="zipConnectApp.userProfile.lastName">Last Name</span></th>
            <th><span jhiTranslate="zipConnectApp.userProfile.userStack">User Stack</span></th>
            <th><span jhiTranslate="zipConnectApp.userProfile.user">User</span></th>
            <th><span jhiTranslate="zipConnectApp.userProfile.employer">Employer</span></th>
            <th><span jhiTranslate="zipConnectApp.userProfile.cohort">Cohort</span></th>
            <th></th>
            </tr>
            </thead>
            <tbody>
            <tr *ngFor="let userProfile of userProfiles ;trackBy: trackId">
                <td><a [routerLink]="['/user-profile', userProfile.id, 'view' ]">{{userProfile.id}}</a></td>
                <td>{{userProfile.firstName}}</td>
                <td>{{userProfile.lastName}}</td>
                <td>{{userProfile.userStack}}</td>
                <td>
                    {{userProfile.user?.id}}
                </td>
                <td>
                    <div *ngIf="userProfile.employer">
                        <a [routerLink]="['../employer', userProfile.employer?.id, 'view' ]" >{{userProfile.employer?.id}}</a>
                    </div>
                </td>
                <td>
                    <div *ngIf="userProfile.cohort">
                        <a [routerLink]="['../cohort', userProfile.cohort?.id, 'view' ]" >{{userProfile.cohort?.id}}</a>
                    </div>
                </td>
                <td class="text-right">
                    <div class="btn-group flex-btn-group-container">
                        <button type="submit"
                                [routerLink]="['/user-profile', userProfile.id, 'view' ]"
                                class="btn btn-info btn-sm">
                            <fa-icon [icon]="'eye'"></fa-icon>
                            <span class="d-none d-md-inline" jhiTranslate="entity.action.view">View</span>
                        </button>
                        <button type="submit"
                                [routerLink]="['/user-profile', userProfile.id, 'edit']"
                                class="btn btn-primary btn-sm">
                            <fa-icon [icon]="'pencil-alt'"></fa-icon>
                            <span class="d-none d-md-inline" jhiTranslate="entity.action.edit">Edit</span>
                        </button>
                        <button type="submit"
                                [routerLink]="['/', { outlets: { popup: 'user-profile/'+ userProfile.id + '/delete'} }]"
                                replaceUrl="true"
                                queryParamsHandling="merge"
                                class="btn btn-danger btn-sm">
                            <fa-icon [icon]="'times'"></fa-icon>
                            <span class="d-none d-md-inline" jhiTranslate="entity.action.delete">Delete</span>
                        </button>
                    </div>
                </td>
            </tr>
            </tbody>
        </table>
    </div>
</div>
