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.

54 lines
2.4 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">All travels</h3>
  7. </div>
  8. <div class="panel-body" style="max-height: 500px;overflow-y: scroll;">
  9. <table class="table table-striped table-hover ">
  10. <thead>
  11. <tr>
  12. <th>Type</th>
  13. <th>Title</th>
  14. <th>Date</th>
  15. <th>User</th>
  16. <th>nºJoins</th>
  17. <th></th>
  18. </tr>
  19. </thead>
  20. <tbody>
  21. <tr ng-repeat="travel in travels">
  22. <td>
  23. <i ng-show="travel.type=='offering'" class="fa fa-car fa-2x"></i>
  24. <i ng-show="travel.type=='asking'" class="fa fa-question fa-2x"></i>
  25. <i ng-show="travel.type=='package'" class="fa fa-archive fa-2x"></i>
  26. </td>
  27. <td>{{travel.title}}</td>
  28. <td>{{travel.date | date}}</td>
  29. <td>
  30. <a ng-href="#!/user/{{travel.user._id}}">
  31. {{travel.user.username}}
  32. </a>
  33. </td>
  34. <td>{{travel.joins.length}}</td>
  35. <td><a ng-href="#!/travel/{{travel._id}}">View</a></td>
  36. </tr>
  37. </tbody>
  38. </table>
  39. </div>
  40. </div>
  41. </div>
  42. <div class="col-sm-8">
  43. <div class="panel">
  44. <div class="panel-heading c_deepPurple300">
  45. <h3 class="panel-title">Map</h3>
  46. </div>
  47. <div class="panel-body">
  48. <leaflet width="100%" height="600px" markers="markers" paths="paths" center="center"
  49. tiles="tiles" id="map-simple-map"></leaflet>
  50. </div>
  51. </div>
  52. </div>
  53. </div>
  54. </div>