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.

65 lines
2.7 KiB

7 years ago
7 years ago
7 years ago
8 years ago
  1. <ion-view view-title="{{'User' | translate}} {{user.username}}">
  2. <ion-content class="has-footer">
  3. <div class="o_userProfileBackground">
  4. <img ng-src="{{user.avatar}}" class="o_userImgCircular" />
  5. <h3 class="o_text_white">{{user.username}}</h3>
  6. <p>{{user.description}}</p>
  7. <p>{{user.email}}</p>
  8. </div>
  9. <div class="">
  10. <div class="row">
  11. <a class="tab-item" ng-show="user.telegram">
  12. <i class="icon ion-paper-airplane"></i>
  13. @{{user.telegram}}
  14. </a>
  15. <a class="tab-item">
  16. <i class="icon ion-android-car"></i>
  17. {{user.travels.length}} Travels
  18. </a>
  19. <a class="tab-item">
  20. <i class="icon ion-ios-heart"></i>
  21. {{user.favs.length}} favs
  22. </a>
  23. </div>
  24. <div class="o-text-right">
  25. <div ng-show="storageusername && storageusername!=user.username">
  26. <a ng-show="arrayObjectIndexOf(user.favs, storageusername, 'username')==-1" ng-click="favUser()">
  27. <img class="o-imgMenu" src="img/unlike.png" />
  28. </a>
  29. <a ng-show="arrayObjectIndexOf(user.favs, storageusername, 'username')!=-1" ng-click="unfavUser()">
  30. <img class="o-imgMenu" src="img/like.png" />
  31. </a>
  32. </div>
  33. <!--<a ng-repeat="join in user.favs" ng-href="#/app/users/{{join.joinedUsername}}" class="button button-small button-dark">
  34. <img ng-src="img/avatars/{{join.joinedAvatar}}.png" class="o-img-joined" />{{join.joinedUsername}}<br>
  35. </a>-->
  36. </div>
  37. </div>
  38. <div class="item">
  39. <img src="img/faircoinpublickey_sample.png" style="width: 100%;" />
  40. </div>
  41. <div class="item item-body">
  42. {{'current_publications_of' | translate}} {{user.username}}:
  43. <div class="o_text_purple600">{{user.travels.length}} {{'publications' | translate}}</div>
  44. <a ng-repeat="travel in user.travels | orderBy: 'date'" class="item item-avatar" href="#/app/travels/{{travel._id}}">
  45. <img ng-src="img/{{travel.type}}.png">
  46. <h2>{{travel.title}}
  47. <div class="item-note">
  48. <div class="o_text_purple400">{{travel.date | date:"HH:mm a"}}</div>
  49. <div class="o_text_purple400">{{travel.date | date:"dd/MM/yyyy"}}</div>
  50. </div>
  51. </h2>
  52. <div class="item-note">
  53. <p class="" ng-show="travel.modality=='offering'">{{'n_Seats' | translate}}: {{travel.seats}}</p>
  54. <p class="" ng-show="travel.modality=='asking'">{{'n_People' | translate}}: {{travel.seats}}</p>
  55. </div>
  56. <p>
  57. {{travel.description}}
  58. </p>
  59. </a>
  60. </div>
  61. </ion-content>
  62. </ion-view>