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.

71 lines
3.0 KiB

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