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.

36 lines
1.6 KiB

  1. <ion-view view-title="Travels">
  2. <ion-content>
  3. <ion-refresher
  4. pulling-text="Pull to refresh..."
  5. on-refresh="doRefresh()">
  6. </ion-refresher>
  7. <div class="list">
  8. <div>
  9. <div class="o-float-right" ng-show="storageusername">
  10. <a ng-click="showNewAskingPackage()" class="button icon ion-email"></a>
  11. <a ng-click="showNewAskingTravel()" class="button icon ion-help"></a>
  12. <a ng-click="showNewOfferingTravel()" class="button icon ion-plus"></a>
  13. </div>
  14. <label class="item item-input">
  15. <i class="icon ion-search placeholder-icon"></i>
  16. <input type="search" placeholder="search by destination" ng-model="search">
  17. </label>
  18. </div>
  19. <a ng-repeat="travel in travels | orderBy: 'date' | filter: search" class="item item-avatar" href="#/app/travels/{{travel._id}}">
  20. <img ng-src="img/{{travel.modality}}.png">
  21. <h2>{{travel.title}}</h2>
  22. <div class="item-note text-right">
  23. <div class="positive">{{travel.date | date:"dd/MM"}}</div>
  24. <div class="positive">{{travel.date | date:"HH:mm"}}h</div>
  25. <!--<div class="badge badge-calm">{{travel.owner}}</div>-->
  26. </div>
  27. <p>
  28. {{travel.description}}
  29. </p>
  30. <!--<p class="" ng-show="travel.modality=='offering'">nºseats: {{travel.seats}}</p>
  31. <p class="" ng-show="travel.modality=='asking'">nºpeople: {{travel.seats}}</p>-->
  32. <p class="">{{travel.from}} - {{travel.to}}</p>
  33. </a>
  34. </div>
  35. </ion-content>
  36. </ion-view>