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.

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