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.

81 lines
3.5 KiB

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