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.

40 lines
1.8 KiB

7 years ago
  1. <ion-view view-title="{{'Search' | translate}}">
  2. <ion-content class="has-footer">
  3. <div class="list">
  4. <div class="item item-input">
  5. <i class="icon ion-search placeholder-icon"></i>
  6. <input type="search" placeholder="{{'search' | translate}}..." ng-model="search.word">
  7. <md-button class="o_purple300" ng-click="doSearch()"><i class="icon ion-search"></i></md-button>
  8. </div>
  9. <div class="item item-divider o_purple300" ng-show="travels[0]">
  10. Travels
  11. </div>
  12. <a ng-repeat="travel in travels | orderBy: 'date'"
  13. class="item item-avatar" href="#/app/travels/{{travel._id}}">
  14. <img ng-src="img/{{travel.type}}.png"/>
  15. <h2 class="o_text_purple600">{{travel.title}}</h2>
  16. <div class="item-note text-right">
  17. <div class="o_text_purple400">{{travel.date | date:"dd/MM"}}</div>
  18. <div class="o_text_purple400">{{travel.date | date:"HH:mm"}}h</div>
  19. <!--<div class="badge badge-calm">{{travel.owner}}</div>-->
  20. </div>
  21. <p>
  22. {{travel.description}}
  23. </p>
  24. <!--<p class="" ng-show="travel.modality=='offering'">nºseats: {{travel.seats}}</p>
  25. <p class="" ng-show="travel.modality=='asking'">nºpeople: {{travel.seats}}</p>-->
  26. <p class="">{{travel.from}} --> {{travel.to}}</p>
  27. </a>
  28. <div class="item item-divider o_purple300" ng-show="users[0]">
  29. Users
  30. </div>
  31. <a ng-repeat="user in users | orderBy: 'date'" class="item item-avatar" ng-href="#/app/users/{{user._id}}">
  32. <img ng-src="{{user.avatar}}">
  33. <h2 class="o_text_purple600">{{user.username}}</h2>
  34. <p>
  35. {{user.description}}
  36. </p>
  37. </a>
  38. </div>
  39. </ion-content>
  40. </ion-view>