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.

78 lines
3.3 KiB

7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
  1. <ion-view view-title="{{'User' | translate}} {{user.username}}">
  2. <ion-content>
  3. <ion-refresher pulling-text="{{'Pull_to_refresh' | translate}}..." on-refresh="doRefresh()">
  4. </ion-refresher>
  5. <div class="o_userProfileBackground">
  6. <img ng-click="showImg()" ng-src="{{user.avatar}}" class="o_userImgCircular" />
  7. <!--
  8. show image disabled, here the code prepared to enable show image:
  9. <img ng-click="showImg()" ng-src="{{user.avatar}}" class="o_userImgCircular" />
  10. -->
  11. <h3 class="o_text_white">
  12. {{user.username}}
  13. <i ng-show="user.validated" class="ion-checkmark-circled ct_blue300"></i>
  14. </h3>
  15. <p>{{user.description}}</p>
  16. <p>{{user.email}}</p>
  17. <p><a class="button button-small" ng-href="#/app/users/userLikes/{{user._id}}">
  18. {{'view_likes' | translate}}
  19. </a></p>
  20. <p ng-show="storageuser._id==user._id">
  21. <a class="button button-small o_grey500" ng-href="#/app/editUser">{{'Edit_profile' | translate}}</a>
  22. </p>
  23. </div>
  24. <div class="">
  25. <div class="row">
  26. <a class="tab-item" ng-show="user.telegram" ng-href="http://telegram.me/{{user.telegram}}">
  27. <i class="icon ion-paper-airplane"></i>
  28. @{{user.telegram}}
  29. </a>
  30. <a class="tab-item" ng-href="#/app/users/userTravels/{{user._id}}">
  31. <i class="icon ion-android-car"></i>
  32. {{user.travels.length}} {{'Travels' | translate}}
  33. </a>
  34. <a class="tab-item" ng-show="arrayObjectIndexOf(user.likes, storageuser._id)==-1">
  35. <i class="icon ion-heart" ng-click="likeUser()"></i>
  36. <i ng-href="#/app/users/userLikes/{{user._id}}">
  37. {{user.likes.length}} {{'likes' | translate}}
  38. </i>
  39. </a>
  40. <a class="tab-item" ng-show="arrayObjectIndexOf(user.likes, storageuser._id)>-1">
  41. <i class="icon ion-heart ctext_red600" ng-click="unlikeUser()"></i>
  42. <i ng-href="#/app/users/userLikes/{{user._id}}">
  43. {{user.likes.length}} {{'likes' | translate}}
  44. </i>
  45. </a>
  46. </div>
  47. </div>
  48. <div class="item">
  49. <p>
  50. {{user.faircoinString}}
  51. </p>
  52. <img src="{{user.faircoin}}" style="width: 100%;" />
  53. </div>
  54. <!--<div class="item item-body">
  55. {{'current_publications_of' | translate}} {{user.username}}:
  56. <div class="o_text_purple600">{{user.travels.length}} {{'publications' | translate}}</div>
  57. <a ng-repeat="travel in user.travels | orderBy: 'date'" class="item item-avatar" href="#/app/travels/{{travel._id}}">
  58. <img ng-src="img/{{travel.type}}.png">
  59. <h2>{{travel.title}}
  60. <div class="item-note">
  61. <div class="o_text_purple400">{{travel.date | date:"HH:mm a"}}</div>
  62. <div class="o_text_purple400">{{travel.date | date:"dd/MM/yyyy"}}</div>
  63. </div>
  64. </h2>
  65. <div class="item-note">
  66. <p class="" ng-show="travel.modality=='offering'">{{'n_Seats' | translate}}: {{travel.seats}}</p>
  67. <p class="" ng-show="travel.modality=='asking'">{{'n_People' | translate}}: {{travel.seats}}</p>
  68. </div>
  69. <p>
  70. {{travel.description}}
  71. </p>
  72. </a>
  73. </div>-->
  74. </ion-content>
  75. </ion-view>