commonroutesLandingPage/app/views/travels/travels.html
app/views/travels/travels.htmlRaw
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 title="offer travel" ng-show="travel.type=='offering'" class="fa fa-car fa-2x"></i>
24 <i title="ask for travel" ng-show="travel.type=='asking'" class="fa fa-question fa-2x"></i>
25 <i title="ask to send package" 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 <div class="row">
32 <div class="col-sm-6">
33 <img style="width:30px;border-radius: 50%;" ng-src="{{travel.user.avatar}}" title="{{travel.user.username}}">
34 </div>
35 <div class="col-sm-6">
36 <i title="user verified" class="fa fa-check-circle" style="color: #64B5F6;"></i>
37 </div>
38 </div>
39 </td>
40 <td><a ng-href="#!/travel/{{travel._id}}">View</a></td>
41 </tr>
42 </tbody>
43 </table>
44 </div>
45 </div>
46 </div>
47 <div class="col-sm-6">
48 <div class="panel">
49 <div class="panel-heading c_deepPurple300">
50 <h3 class="panel-title">Map</h3>
51 </div>
52 <div class="panel-body">
53 <leaflet width="100%" height="500px" markers="markers" paths="paths" center="center"
54 tiles="tiles" id="map-simple-map"></leaflet>
55 </div>
56 </div>
57 </div>
58 </div>
59</div>