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.

51 lines
1.9 KiB

8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
  1. <ion-view view-title="{{'Travels' | translate}}">
  2. <ion-content class="has-footer">
  3. <ion-refresher
  4. pulling-text="{{'Pull_to_refresh' | translate}}..."
  5. on-refresh="paginationNext()">
  6. </ion-refresher>
  7. <div class="list">
  8. <div>
  9. <label class="item item-input">
  10. <i class="icon ion-search placeholder-icon"></i>
  11. <input type="search" placeholder="{{'filter' | translate}}..." ng-model="search">
  12. </label>
  13. </div>
  14. <div class="card" ng-show="!travels">
  15. <div class="item item-text-wrap">
  16. {{'No_data_in_memory' | translate}}<br>
  17. {{'Pull_from_top_to_refresh' | translate}}
  18. </div>
  19. </div>
  20. <a ng-repeat="travel in travels | orderBy: 'date' | filter: search"
  21. class="item item-icon-left" href="#/app/travels/{{travel._id}}">
  22. <div class="item-note text-right">
  23. {{travel.user.username}}
  24. </div>
  25. <i ng-show="travel.type=='offering'" class="icon ion-android-car o_text_grey700"></i>
  26. <i ng-show="travel.type=='asking'" class="icon ion-help o_text_grey700"></i>
  27. <i ng-show="travel.type=='package'" class="icon ion-ios-box o_text_grey700"></i>
  28. <h2 class="o_text_grey800">{{travel.title}}</h2>
  29. <div class="item-note text-right">
  30. <div class="o_text_purple300">{{travel.date | date:"dd/MM"}}</div>
  31. <div class="o_text_purple300">{{travel.date | date:"HH:mm"}}h</div>
  32. </div>
  33. <p>
  34. {{travel.from.name}}
  35. </p>
  36. <p>
  37. {{travel.to.name}}
  38. </p>
  39. </a>
  40. </div>
  41. <!--<div class="button" ng-click="paginationNext()">
  42. {{'load_more' | translate}}
  43. </div>-->
  44. <ion-infinite-scroll
  45. ng-if="loadMorePagination"
  46. on-infinite="paginationNext()"
  47. distance="1%">
  48. </ion-infinite-scroll>
  49. </ion-content>
  50. </ion-view>