You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

88 lines
4.3 KiB

  1. <div class="container">
  2. <div class="row">
  3. <div class="col-sm-4">
  4. <div class="panel">
  5. <div class="panel-heading c_deepPurple300">
  6. <h3 class="panel-title">
  7. All users
  8. <span class="badge badge-secondary pull-right c_deepPurple300">{{users.length}}</span>
  9. </h3>
  10. </div>
  11. <div class="panel-body" style="max-height: 500px;overflow-y: scroll;">
  12. <div class="list-group">
  13. <a ng-repeat="user in users" ng-href="#!/user/{{user._id}}" class="list-group-item">
  14. <div class="row-picture">
  15. <img class="circle" ng-src="{{user.avatar}}" alt="icon">
  16. </div>
  17. <div class="row-content">
  18. <h4 class="list-group-item-heading">
  19. {{user.username}}
  20. <span ng-show="user.validated" class="badge badge-secondary c_deepPurple300">Validated</span>
  21. </h4>
  22. <p class="list-group-item-text">{{user.description}}</p>
  23. <p class="list-group-item-text">{{user.travels.length}} published travels</p>
  24. <p class="list-group-item-text">{{user.likes.length}} likes</p>
  25. </div>
  26. <div class="list-group-separator"></div>
  27. </a>
  28. </div>
  29. </div>
  30. </div>
  31. </div>
  32. <div class="col-sm-6">
  33. <div class="panel">
  34. <div class="panel-heading c_deepPurple300">
  35. <h3 class="panel-title">
  36. All travels
  37. <span class="badge badge-secondary pull-right c_deepPurple300">{{travels.length}}</span>
  38. </h3>
  39. </div>
  40. <div class="panel-body" style="max-height: 500px;overflow-y: scroll;">
  41. <table class="table table-striped table-hover ">
  42. <thead>
  43. <tr>
  44. <th>Type</th>
  45. <th>Title</th>
  46. <th>Date</th>
  47. <th>User</th>
  48. <th>nºJoins</th>
  49. <th></th>
  50. </tr>
  51. </thead>
  52. <tbody>
  53. <tr ng-repeat="travel in travels">
  54. <td>
  55. <i ng-show="travel.type=='offering'" class="fa fa-car fa-2x"></i>
  56. <i ng-show="travel.type=='asking'" class="fa fa-question fa-2x"></i>
  57. <i ng-show="travel.type=='package'" class="fa fa-archive fa-2x"></i>
  58. </td>
  59. <td>{{travel.title}}</td>
  60. <td>{{travel.date | date}}</td>
  61. <td>
  62. <a ng-href="#!/user/{{travel.user._id}}">
  63. {{travel.user.username}}
  64. </a>
  65. </td>
  66. <td>{{travel.joins.length}}</td>
  67. <td><a ng-href="#!/travel/{{travel._id}}">View</a></td>
  68. </tr>
  69. </tbody>
  70. </table>
  71. </div>
  72. </div>
  73. </div>
  74. <div class="col-sm-2">
  75. <div class="panel">
  76. <div class="panel-heading c_deepPurple300">
  77. <h3 class="panel-title">Actions</h3>
  78. </div>
  79. <div class="panel-body">
  80. <div class="btn btn-block btn-sm c_green300">Create user</div>
  81. <div class="btn btn-block btn-sm c_blue300">Create travel</div>
  82. <a href="#!/network" class="btn btn-block btn-sm c_deepPurple300">View network</a>
  83. </div>
  84. </div>
  85. </div>
  86. </div>
  87. </div>