<div class="container">
|
|
<div class="row">
|
|
<div class="col-sm-4">
|
|
<div ng-repeat="travel in travels">
|
|
<div class="card">
|
|
<div class="card-body" style="color:#ffffff; background-image: url('img/userProfileBackground.png');">
|
|
<div class="pull-right">{{travel.date | date}}</div>
|
|
<h4 class="card-title"><b>{{travel.title}}</b></h4>
|
|
</div>
|
|
<div class="card-body">
|
|
<div class="pull-right">
|
|
<a ng-href="#!/user/{{travel.user._id}}">
|
|
<img class="circle" style="max-width: 30px; max-height:30px;" ng-src="{{travel.user.avatar}}" />
|
|
{{travel.user.username}}
|
|
</a>
|
|
</div>
|
|
<p>
|
|
From: <b>{{travel.from.name}}</b>
|
|
</p>
|
|
<p>
|
|
To: <b>{{travel.to.name}}</b>
|
|
</p>
|
|
<p>
|
|
{{travel.joins.length}}/{{travel.seats}}
|
|
</p>
|
|
<p ng-show="travel.package">
|
|
Can transport package
|
|
</p>
|
|
<a href="#" class="card-link">Go somewhere</a>
|
|
</div>
|
|
</div>
|
|
<br><br>
|
|
</div>
|
|
<div ng-repeat="travel in travels">
|
|
<div class="card">
|
|
<img class="card-img-top" src="..." alt="Card image cap">
|
|
<div class="card-body">
|
|
<h4 class="card-title">Card title</h4>
|
|
<p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
|
|
<a href="#" class="btn btn-primary">Go somewhere</a>
|
|
</div>
|
|
</div>
|
|
<br><br>
|
|
</div>
|
|
</div>
|
|
<div class="col-sm-4">
|
|
<div class="panel">
|
|
<div class="panel-heading c_deepPurpleG500to300">
|
|
<h3 class="panel-title">
|
|
Travels Feed
|
|
<span class="badge badge-secondary pull-right c_deepPurpleG500to300">{{travels.length}}</span>
|
|
</h3>
|
|
</div>
|
|
<div class="panel-body" style="max-height: 500px;overflow-y: scroll;">
|
|
<table class="table table-striped table-hover ">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Title</th>
|
|
<th>From</th>
|
|
<th>To</th>
|
|
<th>Date</th>
|
|
<th>User</th>
|
|
<th>nºJoins/Seats</th>
|
|
<th></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr ng-repeat="travel in travels">
|
|
<a ng-href="#!/travel/{{travel._id}}">
|
|
<td>
|
|
<i ng-show="travel.type=='offering'" title="offering" class="fa fa-car fa-2x"></i>
|
|
<i ng-show="travel.type=='asking'" title="asking" class="fa fa-question fa-2x"></i>
|
|
<i ng-show="travel.type=='package'" title="package" class="fa fa-archive fa-2x"></i>
|
|
</td>
|
|
<td>{{travel.title}}</td>
|
|
<td>
|
|
<b>{{travel.from.name}}</b>
|
|
</td>
|
|
<td>
|
|
<b>{{travel.to.name}}</b>
|
|
</td>
|
|
<td>{{travel.date | date}}</td>
|
|
<td>
|
|
<a ng-href="#!/user/{{travel.user._id}}">
|
|
<img class="circle" style="max-width: 30px; max-height:30px;" ng-src="{{travel.user.avatar}}" />
|
|
{{travel.user.username}}
|
|
</a>
|
|
</td>
|
|
<td>{{travel.joins.length}}/{{travel.seats}}</td>
|
|
<td><a ng-href="#!/travel/{{travel._id}}">View</a></td>
|
|
</a>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-sm-2">
|
|
<div class="panel">
|
|
<div class="panel-heading c_deepPurpleG500to300">
|
|
<h3 class="panel-title">Actions</h3>
|
|
</div>
|
|
<div class="panel-body">
|
|
<div class="btn btn-block btn-sm c_green300">Create user</div>
|
|
<div class="btn btn-block btn-sm c_blue300">Create travel</div>
|
|
<a href="#!/network" class="btn btn-block btn-sm c_deepPurpleG500to300">View network</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|