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.

43 lines
2.0 KiB

  1. <ion-view view-title="{{'Travels' | translate}}">
  2. <ion-content>
  3. <ion-refresher
  4. pulling-text="{{'Pull_to_refresh' | translate}}..."
  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"><img ng-src="img/newpackage.png" class="o-img-new"/></a>
  11. <a ng-click="showNewAskingTravel()" class="button"><img ng-src="img/newasking.png" class="o-img-new"/></a>
  12. <a ng-click="showNewOfferingTravel()" class="button"><img ng-src="img/newoffering.png" class="o-img-new"/></a>
  13. </div>
  14. <label class="item item-input">
  15. <i class="icon ion-search placeholder-icon"></i>
  16. <input type="search" placeholder="{{'search' | translate}}..." ng-model="search">
  17. </label>
  18. </div>
  19. <div class="card" ng-show="!travels">
  20. <div class="item item-text-wrap">
  21. {{'No_data_in_memory' | translate}}<br>
  22. {{'Pull_from_top_to_refresh' | translate}}
  23. </div>
  24. </div>
  25. <a ng-repeat="travel in travels | orderBy: 'date' | filter: search" class="item item-avatar" href="#/app/travels/{{travel._id}}">
  26. <img ng-src="img/{{travel.modality}}.png"/>
  27. <h2>{{travel.title}}</h2>
  28. <div class="item-note text-right">
  29. <div class="positive">{{travel.date | date:"dd/MM"}}</div>
  30. <div class="positive">{{travel.date | date:"HH:mm"}}h</div>
  31. <!--<div class="badge badge-calm">{{travel.owner}}</div>-->
  32. </div>
  33. <p>
  34. {{travel.description}}
  35. </p>
  36. <!--<p class="" ng-show="travel.modality=='offering'">nºseats: {{travel.seats}}</p>
  37. <p class="" ng-show="travel.modality=='asking'">nºpeople: {{travel.seats}}</p>-->
  38. <p class="">{{travel.from}} --> {{travel.to}}</p>
  39. </a>
  40. </div>
  41. </ion-content>
  42. </ion-view>