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.

52 lines
2.4 KiB

  1. <div class="container">
  2. <div class="row">
  3. <div class="col-sm-6">
  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>From</th>
  14. <th>To</th>
  15. <th>Date</th>
  16. <!-- <th>User</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.from.name}}</td>
  28. <td>{{travel.to.name}}</td>
  29. <td>{{travel.date | date:'yyyy/MM/dd'}}</td>
  30. <!-- <td>
  31. <img style="width:30px;" ng-src="{{travel.user.avatar}}" title="{{travel.user.username}}">
  32. </td> -->
  33. <td><a ng-href="#!/travel/{{travel._id}}">View</a></td>
  34. </tr>
  35. </tbody>
  36. </table>
  37. </div>
  38. </div>
  39. </div>
  40. <div class="col-sm-6">
  41. <div class="panel">
  42. <div class="panel-heading c_deepPurple300">
  43. <h3 class="panel-title">Map</h3>
  44. </div>
  45. <div class="panel-body">
  46. <leaflet width="100%" height="500px" markers="markers" paths="paths" center="center"
  47. tiles="tiles" id="map-simple-map"></leaflet>
  48. </div>
  49. </div>
  50. </div>
  51. </div>
  52. </div>