123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- <div>
- <h2 id="page-heading">
- <span jhiTranslate="zipConnectApp.post.home.title">Posts</span>
- <button id="jh-create-entity" class="btn btn-primary float-right jh-create-entity create-post" [routerLink]="['/post/new']">
- <fa-icon [icon]="'plus'"></fa-icon>
- <span jhiTranslate="zipConnectApp.post.home.createLabel">
- Create new Post
- </span>
- </button>
- </h2>
- <jhi-alert></jhi-alert>
- <br/>
- <div class="table-responsive" *ngIf="posts">
- <table class="table table-striped">
- <thead>
- <tr>
- <th><span jhiTranslate="global.field.id">ID</span></th>
- <th><span jhiTranslate="zipConnectApp.post.postId">Post Id</span></th>
- <th><span jhiTranslate="zipConnectApp.post.timestamp">Timestamp</span></th>
- <th><span jhiTranslate="zipConnectApp.post.content">Content</span></th>
- <th><span jhiTranslate="zipConnectApp.post.likes">Likes</span></th>
- <th><span jhiTranslate="zipConnectApp.post.poster">Poster</span></th>
- <th><span jhiTranslate="zipConnectApp.post.privacySetting">Privacy Setting</span></th>
- <th><span jhiTranslate="zipConnectApp.post.poster">Poster</span></th>
- <th></th>
- </tr>
- </thead>
- <tbody>
- <tr *ngFor="let post of posts ;trackBy: trackId">
- <td><a [routerLink]="['/post', post.id, 'view' ]">{{post.id}}</a></td>
- <td>{{post.postId}}</td>
- <td>{{post.timestamp | date:'mediumDate'}}</td>
- <td>{{post.content}}</td>
- <td>{{post.likes}}</td>
- <td>
- {{post.poster?.id}}
- </td>
- <td>
- <div *ngIf="post.privacySetting">
- <a [routerLink]="['../privacy', post.privacySetting?.id, 'view' ]" >{{post.privacySetting?.id}}</a>
- </div>
- </td>
- <td>
- {{post.poster?.id}}
- </td>
- <td class="text-right">
- <div class="btn-group flex-btn-group-container">
- <button type="submit"
- [routerLink]="['/post', post.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]="['/post', post.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: 'post/'+ post.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>
|