<ion-view view-title="{{'Travels' | translate}}">
|
|
<ion-content class="has-footer">
|
|
<ion-refresher
|
|
pulling-text="{{'Pull_to_refresh' | translate}}..."
|
|
on-refresh="paginationNext()">
|
|
</ion-refresher>
|
|
<div class="list">
|
|
<div>
|
|
<label class="item item-input">
|
|
<i class="icon ion-search placeholder-icon"></i>
|
|
<input type="search" placeholder="{{'filter' | translate}}..." ng-model="search">
|
|
</label>
|
|
</div>
|
|
|
|
<div class="card" ng-show="!travels">
|
|
<div class="item item-text-wrap">
|
|
{{'No_data_in_memory' | translate}}<br>
|
|
{{'Pull_from_top_to_refresh' | translate}}
|
|
</div>
|
|
</div>
|
|
<a ng-repeat="travel in travels | orderBy: 'date' | filter: search"
|
|
class="item item-icon-left" href="#/app/travels/{{travel._id}}">
|
|
<div class="item-note text-right">
|
|
{{travel.user.username}}
|
|
</div>
|
|
<i ng-show="travel.type=='offering'" class="icon ion-android-car o_text_grey700"></i>
|
|
<i ng-show="travel.type=='asking'" class="icon ion-help o_text_grey700"></i>
|
|
<i ng-show="travel.type=='package'" class="icon ion-ios-box o_text_grey700"></i>
|
|
<h2 class="o_text_grey800">{{travel.title}}</h2>
|
|
<div class="item-note text-right">
|
|
<div class="o_text_purple300">{{travel.date | date:"dd/MM"}}</div>
|
|
<div class="o_text_purple300">{{travel.date | date:"HH:mm"}}h</div>
|
|
</div>
|
|
<p>
|
|
{{travel.from.name}}
|
|
</p>
|
|
<p>
|
|
{{travel.to.name}}
|
|
</p>
|
|
</a>
|
|
</div>
|
|
<!--<div class="button" ng-click="paginationNext()">
|
|
{{'load_more' | translate}}
|
|
</div>-->
|
|
<ion-infinite-scroll
|
|
ng-if="loadMorePagination"
|
|
on-infinite="paginationNext()"
|
|
distance="1%">
|
|
</ion-infinite-scroll>
|
|
</ion-content>
|
|
</ion-view>
|