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.

74 lines
3.4 KiB

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