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.

73 lines
3.1 KiB

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