post-detail.component.html 2.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <div class="row justify-content-center">
  2. <div class="col-8">
  3. <div *ngIf="post">
  4. <h2><span jhiTranslate="zipConnectApp.post.detail.title">Post</span> {{post.id}}</h2>
  5. <hr>
  6. <jhi-alert-error></jhi-alert-error>
  7. <dl class="row-md jh-entity-details">
  8. <dt><span jhiTranslate="zipConnectApp.post.postId">Post Id</span></dt>
  9. <dd>
  10. <span>{{post.postId}}</span>
  11. </dd>
  12. <dt><span jhiTranslate="zipConnectApp.post.timestamp">Timestamp</span></dt>
  13. <dd>
  14. <span>{{post.timestamp}}</span>
  15. </dd>
  16. <dt><span jhiTranslate="zipConnectApp.post.content">Content</span></dt>
  17. <dd>
  18. <span>{{post.content}}</span>
  19. </dd>
  20. <dt><span jhiTranslate="zipConnectApp.post.likes">Likes</span></dt>
  21. <dd>
  22. <span>{{post.likes}}</span>
  23. </dd>
  24. <dt><span jhiTranslate="zipConnectApp.post.poster">Poster</span></dt>
  25. <dd>
  26. {{post.poster?.id}}
  27. </dd>
  28. <dt><span jhiTranslate="zipConnectApp.post.privacySetting">Privacy Setting</span></dt>
  29. <dd>
  30. <div *ngIf="post.privacySetting">
  31. <a [routerLink]="['/privacy', post.privacySetting?.id, 'view']">{{post.privacySetting?.id}}</a>
  32. </div>
  33. </dd>
  34. <dt><span jhiTranslate="zipConnectApp.post.poster">Poster</span></dt>
  35. <dd>
  36. {{post.poster?.id}}
  37. </dd>
  38. </dl>
  39. <button type="submit"
  40. (click)="previousState()"
  41. class="btn btn-info">
  42. <fa-icon [icon]="'arrow-left'"></fa-icon>&nbsp;<span jhiTranslate="entity.action.back"> Back</span>
  43. </button>
  44. <button type="button"
  45. [routerLink]="['/post', post.id, 'edit']"
  46. class="btn btn-primary">
  47. <fa-icon [icon]="'pencil-alt'"></fa-icon>&nbsp;<span jhiTranslate="entity.action.edit"> Edit</span>
  48. </button>
  49. </div>
  50. </div>
  51. </div>