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.

49 lines
1.7 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 class="icon ion-android-car o_text_grey700"></i>
  26. <h2 class="o_text_grey800">{{travel.title}}</h2>
  27. <div class="item-note text-right">
  28. <div class="o_text_purple300">{{travel.date | date:"dd/MM"}}</div>
  29. <div class="o_text_purple300">{{travel.date | date:"HH:mm"}}h</div>
  30. </div>
  31. <p>
  32. {{travel.from.name}}
  33. </p>
  34. <p>
  35. {{travel.to.name}}
  36. </p>
  37. </a>
  38. </div>
  39. <!--<div class="button" ng-click="paginationNext()">
  40. {{'load_more' | translate}}
  41. </div>-->
  42. <ion-infinite-scroll
  43. ng-if="loadMorePagination"
  44. on-infinite="paginationNext()"
  45. distance="1%">
  46. </ion-infinite-scroll>
  47. </ion-content>
  48. </ion-view>