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.

72 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. <img src="{{user.faircoin}}" style="width: 100%;" />
  47. </div>
  48. <!--<div class="item item-body">
  49. {{'current_publications_of' | translate}} {{user.username}}:
  50. <div class="o_text_purple600">{{user.travels.length}} {{'publications' | translate}}</div>
  51. <a ng-repeat="travel in user.travels | orderBy: 'date'" class="item item-avatar" href="#/app/travels/{{travel._id}}">
  52. <img ng-src="img/{{travel.type}}.png">
  53. <h2>{{travel.title}}
  54. <div class="item-note">
  55. <div class="o_text_purple400">{{travel.date | date:"HH:mm a"}}</div>
  56. <div class="o_text_purple400">{{travel.date | date:"dd/MM/yyyy"}}</div>
  57. </div>
  58. </h2>
  59. <div class="item-note">
  60. <p class="" ng-show="travel.modality=='offering'">{{'n_Seats' | translate}}: {{travel.seats}}</p>
  61. <p class="" ng-show="travel.modality=='asking'">{{'n_People' | translate}}: {{travel.seats}}</p>
  62. </div>
  63. <p>
  64. {{travel.description}}
  65. </p>
  66. </a>
  67. </div>-->
  68. </ion-content>
  69. </ion-view>