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.

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