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.

106 lines
4.5 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">User profile</h3>
  7. </div>
  8. <div class="panel-body">
  9. <div class="list-group">
  10. <a class="list-group-item">
  11. <div class="row-picture">
  12. <img class="circle" ng-src="{{user.avatar}}" alt="icon">
  13. </div>
  14. <div class="row-content">
  15. <h4 class="list-group-item-heading">{{user.username}}</h4>
  16. <p class="list-group-item-text">{{user.description}}</p>
  17. </div>
  18. </a>
  19. </div>
  20. <p>
  21. {{user.email}}
  22. </p>
  23. <p>
  24. {{user.telegram}}
  25. </p>
  26. <p>
  27. {{user.phone}}
  28. </p>
  29. </div>
  30. </div>
  31. <div class="panel">
  32. <div class="panel-heading c_deepPurple300">
  33. <h3 class="panel-title">User received likes ({{user.likes.length}})</h3>
  34. </div>
  35. <div class="panel-body">
  36. <div class="list-group">
  37. <a ng-repeat="user in likes" ng-href="#!/user/{{user._id}}" class="list-group-item">
  38. <div class="row-picture">
  39. <img class="circle" ng-src="{{user.avatar}}" alt="icon">
  40. </div>
  41. <div class="row-content">
  42. <h4 class="list-group-item-heading">{{user.username}}</h4>
  43. <p class="list-group-item-text">{{user.description}}</p>
  44. </div>
  45. <div class="list-group-separator"></div>
  46. </a>
  47. </div>
  48. </div>
  49. </div>
  50. </div>
  51. <div class="col-sm-6">
  52. <div class="panel">
  53. <div class="panel-heading c_deepPurple300">
  54. <h3 class="panel-title">User travels</h3>
  55. </div>
  56. <div class="panel-body">
  57. <table class="table table-striped table-hover ">
  58. <thead>
  59. <tr>
  60. <th>Type</th>
  61. <th>Title</th>
  62. <th>Date</th>
  63. <th>User</th>
  64. <th>nºJoins</th>
  65. <th></th>
  66. </tr>
  67. </thead>
  68. <tbody>
  69. <tr ng-repeat="travel in user.travels">
  70. <td>
  71. <i ng-show="travel.type=='offering'" class="fa fa-car fa-2x"></i>
  72. <i ng-show="travel.type=='asking'" class="fa fa-question fa-2x"></i>
  73. <i ng-show="travel.type=='package'" class="fa fa-archive fa-2x"></i>
  74. </td>
  75. <td>{{travel.title}}</td>
  76. <td>{{travel.date | date}}</td>
  77. <td>
  78. <a ng-href="#!/user/{{travel.user._id}}">
  79. {{travel.user.username}}
  80. </a>
  81. </td>
  82. <td>{{travel.joins.length}}</td>
  83. <td><a ng-href="#!/travel/{{travel._id}}">View</a></td>
  84. </tr>
  85. </tbody>
  86. </table>
  87. </div>
  88. </div>
  89. </div>
  90. <div class="col-sm-2">
  91. <div class="panel">
  92. <div class="panel-heading c_deepPurple500">
  93. <h3 class="panel-title">Admin actions</h3>
  94. </div>
  95. <div class="panel-body">
  96. <div class="btn btn-block btn-sm c_orange300">Ban user</div>
  97. <div class="btn btn-block btn-sm c_red300">Delete user</div>
  98. </div>
  99. </div>
  100. </div>
  101. </div>
  102. </div>