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.

30 lines
1.2 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 class="o-float-right" ng-show="storageusername">
  9. <a ng-click="showNewAskingPackage()" class="button icon ion-email"></a>
  10. <a ng-click="showNewAskingTravel()" class="button icon ion-help"></a>
  11. <a ng-click="showNewOfferingTravel()" class="button icon ion-plus"></a>
  12. </div>
  13. <a ng-repeat="travel in travels | orderBy: 'date'" class="item item-avatar" href="#/app/travels/{{travel._id}}">
  14. <img ng-src="img/{{travel.modality}}.png">
  15. <h2>{{travel.title}}</h2>
  16. <div class="item-note">
  17. <div class="positive">{{travel.date | date:"dd/MM HH:mm a"}}</div>
  18. <div class="badge badge-calm">{{travel.owner}}</div>
  19. </div>
  20. <p>
  21. {{travel.description}}
  22. </p>
  23. <p class="" ng-show="travel.modality=='offering'">nºseats: {{travel.seats}}</p>
  24. <p class="" ng-show="travel.modality=='asking'">nºpeople: {{travel.seats}}</p>
  25. </a>
  26. </div>
  27. </ion-content>
  28. </ion-view>