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.

66 lines
2.8 KiB

8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
  1. <ion-view view-title="{{'User' | translate}} {{user.username}}">
  2. <ion-content class="has-footer">
  3. <div class="o_userProfileBackground">
  4. <img ng-src="{{user.avatar}}" class="o_userImgCircular" />
  5. <h3 class="o_text_white">{{user.username}}</h3>
  6. <p>{{user.description}}</p>
  7. <p>{{user.email}}</p>
  8. </div>
  9. <div class="">
  10. <div class="row">
  11. <a class="tab-item" ng-show="user.telegram"
  12. ng-href="http://telegram.me/{{user.telegram}}">
  13. <i class="icon ion-paper-airplane"></i>
  14. @{{user.telegram}}
  15. </a>
  16. <a class="tab-item">
  17. <i class="icon ion-android-car"></i>
  18. {{user.travels.length}} Travels
  19. </a>
  20. <a class="tab-item">
  21. <i class="icon ion-ios-heart"></i>
  22. {{user.favs.length}} favs
  23. </a>
  24. </div>
  25. <div class="o-text-right">
  26. <div ng-show="storageusername && storageusername!=user.username">
  27. <a ng-show="arrayObjectIndexOf(user.favs, storageusername, 'username')==-1" ng-click="favUser()">
  28. <img class="o-imgMenu" src="img/unlike.png" />
  29. </a>
  30. <a ng-show="arrayObjectIndexOf(user.favs, storageusername, 'username')!=-1" ng-click="unfavUser()">
  31. <img class="o-imgMenu" src="img/like.png" />
  32. </a>
  33. </div>
  34. <!--<a ng-repeat="join in user.favs" ng-href="#/app/users/{{join.joinedUsername}}" class="button button-small button-dark">
  35. <img ng-src="img/avatars/{{join.joinedAvatar}}.png" class="o-img-joined" />{{join.joinedUsername}}<br>
  36. </a>-->
  37. </div>
  38. </div>
  39. <div class="item">
  40. <img src="img/faircoinpublickey_sample.png" style="width: 100%;" />
  41. </div>
  42. <div class="item item-body">
  43. {{'current_publications_of' | translate}} {{user.username}}:
  44. <div class="o_text_purple600">{{user.travels.length}} {{'publications' | translate}}</div>
  45. <a ng-repeat="travel in user.travels | orderBy: 'date'" class="item item-avatar" href="#/app/travels/{{travel._id}}">
  46. <img ng-src="img/{{travel.type}}.png">
  47. <h2>{{travel.title}}
  48. <div class="item-note">
  49. <div class="o_text_purple400">{{travel.date | date:"HH:mm a"}}</div>
  50. <div class="o_text_purple400">{{travel.date | date:"dd/MM/yyyy"}}</div>
  51. </div>
  52. </h2>
  53. <div class="item-note">
  54. <p class="" ng-show="travel.modality=='offering'">{{'n_Seats' | translate}}: {{travel.seats}}</p>
  55. <p class="" ng-show="travel.modality=='asking'">{{'n_People' | translate}}: {{travel.seats}}</p>
  56. </div>
  57. <p>
  58. {{travel.description}}
  59. </p>
  60. </a>
  61. </div>
  62. </ion-content>
  63. </ion-view>