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.

53 lines
2.2 KiB

8 years ago
8 years ago
8 years ago
  1. <ion-view view-title="{{'User' | translate}} {{user.username}}">
  2. <ion-content>
  3. <div class="item item-avatar">
  4. <img ng-src="img/avatars/{{user.avatar}}.png" />
  5. <h2>{{user.username}}</h2>
  6. </div>
  7. <div class="item item-body">
  8. <p class="o-bold">{{user.description}}</p>
  9. <p>{{user.mail}}</p>
  10. <p>
  11. <img class='o-imgMenu' src="img/telegram.png" /> @{{user.telegram}}
  12. </p>
  13. <div class="o-text-right">
  14. <b>favs:</b>
  15. <span class="">{{user.favs.length}}</span>
  16. <br><br>
  17. <div ng-show="storageusername && storageusername!=user.username">
  18. <a ng-show="arrayObjectIndexOf(user.favs, storageusername, 'username')==-1" ng-click="favUser()">
  19. <img class="o-imgMenu" src="img/unlike.png" />
  20. </a>
  21. <a ng-show="arrayObjectIndexOf(user.favs, storageusername, 'username')!=-1" ng-click="unfavUser()">
  22. <img class="o-imgMenu" src="img/like.png" />
  23. </a>
  24. </div>
  25. <!--<a ng-repeat="join in user.favs" ng-href="#/app/users/{{join.joinedUsername}}" class="button button-small button-dark">
  26. <img ng-src="img/avatars/{{join.joinedAvatar}}.png" class="o-img-joined" />{{join.joinedUsername}}<br>
  27. </a>-->
  28. </div>
  29. </div>
  30. <div class="item item-body">
  31. {{'history_of' | translate}} {{user.username}}:
  32. <div class="positive">{{travels.length}} {{'publications' | translate}}</div>
  33. <a ng-repeat="travel in travels | orderBy: 'date'" class="item item-avatar" href="#/app/travels/{{travel._id}}">
  34. <img ng-src="img/{{travel.modality}}.png">
  35. <h2>{{travel.title}}
  36. <div class="item-note">
  37. <div class="positive">{{travel.date | date:"dd/MM HH:mm a"}}</div>
  38. </div>
  39. </h2>
  40. <div class="item-note">
  41. <p class="" ng-show="travel.modality=='offering'">{{'n_Seats' | translate}}: {{travel.seats}}</p>
  42. <p class="" ng-show="travel.modality=='asking'">{{'n_People' | translate}}: {{travel.seats}}</p>
  43. </div>
  44. <p>
  45. {{travel.description}}
  46. </p>
  47. </a>
  48. </div>
  49. </ion-content>
  50. </ion-view>