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.

29 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">
  9. <a ng-click="showNewAskingTravel()" 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. <p>
  17. {{travel.description}}
  18. </p>
  19. <p class="" ng-show="travel.modality=='offering'">nºseats: {{travel.seats}}</p>
  20. <p class="" ng-show="travel.modality=='asking'">nºpeople: {{travel.seats}}</p>
  21. <div class="item-note">
  22. <div class="positive">{{travel.date | date:"dd/MM HH:mm a"}}</div>
  23. <div class="badge badge-calm">{{travel.owner}}</div>
  24. </div>
  25. </a>
  26. </div>
  27. </ion-content>
  28. </ion-view>