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.

39 lines
1.6 KiB

7 years ago
7 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="doRefresh()">
  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-avatar" href="#/app/travels/{{travel._id}}">
  22. <img ng-src="img/{{travel.type}}.png"/>
  23. <h2 class="o_text_purple600">{{travel.title}}</h2>
  24. <div class="item-note text-right">
  25. <div class="o_text_purple400">{{travel.date | date:"dd/MM"}}</div>
  26. <div class="o_text_purple400">{{travel.date | date:"HH:mm"}}h</div>
  27. <!--<div class="badge badge-calm">{{travel.owner}}</div>-->
  28. </div>
  29. <p>
  30. {{travel.description}}
  31. </p>
  32. <!--<p class="" ng-show="travel.modality=='offering'">nºseats: {{travel.seats}}</p>
  33. <p class="" ng-show="travel.modality=='asking'">nºpeople: {{travel.seats}}</p>-->
  34. <p class="">{{travel.from.name}} --> {{travel.to.name}}</p>
  35. </a>
  36. </div>
  37. </ion-content>
  38. </ion-view>