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.

82 lines
3.6 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-click="openTelegram(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. FairCoin Address:
  53. <textarea ng-model="user.faircoinString" rows="1" style="width: 100%;"
  54. onclick="this.focus();this.select()" readonly="readonly"
  55. ></textarea>
  56. <img src="{{user.faircoin}}" style="width: 100%;" />
  57. </div>
  58. <!--<div class="item item-body">
  59. {{'current_publications_of' | translate}} {{user.username}}:
  60. <div class="o_text_purple600">{{user.travels.length}} {{'publications' | translate}}</div>
  61. <a ng-repeat="travel in user.travels | orderBy: 'date'" class="item item-avatar" href="#/app/travels/{{travel._id}}">
  62. <img ng-src="img/{{travel.type}}.png">
  63. <h2>{{travel.title}}
  64. <div class="item-note">
  65. <div class="o_text_purple400">{{travel.date | date:"HH:mm a"}}</div>
  66. <div class="o_text_purple400">{{travel.date | date:"dd/MM/yyyy"}}</div>
  67. </div>
  68. </h2>
  69. <div class="item-note">
  70. <p class="" ng-show="travel.modality=='offering'">{{'n_Seats' | translate}}: {{travel.seats}}</p>
  71. <p class="" ng-show="travel.modality=='asking'">{{'n_People' | translate}}: {{travel.seats}}</p>
  72. </div>
  73. <p>
  74. {{travel.description}}
  75. </p>
  76. </a>
  77. </div>-->
  78. </ion-content>
  79. </ion-view>